Added MiniButton::set_stock_id
This commit is contained in:
parent
94242b779a
commit
d15264fd67
2 changed files with 11 additions and 1 deletions
|
|
@ -39,5 +39,12 @@ MiniButton::MiniButton(const StockID& stock_id,
|
||||||
set_focus_on_click(false);
|
set_focus_on_click(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MiniButton::set_stock_id(const StockID& stock_id,
|
||||||
|
const IconSize icon_size)
|
||||||
|
{
|
||||||
|
image.set(stock_id, icon_size);
|
||||||
|
}
|
||||||
|
|
||||||
} // widgets
|
} // widgets
|
||||||
} // gui
|
} // gui
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ public:
|
||||||
MiniButton(const Gtk::StockID& stock_id,
|
MiniButton(const Gtk::StockID& stock_id,
|
||||||
const Gtk::IconSize icon_size = Gtk::ICON_SIZE_LARGE_TOOLBAR);
|
const Gtk::IconSize icon_size = Gtk::ICON_SIZE_LARGE_TOOLBAR);
|
||||||
|
|
||||||
|
void set_stock_id(const Gtk::StockID& stock_id,
|
||||||
|
const Gtk::IconSize icon_size = Gtk::ICON_SIZE_LARGE_TOOLBAR);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Gtk::Image image;
|
Gtk::Image image;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue