Added MiniButton::set_stock_id
This commit is contained in:
parent
94242b779a
commit
d15264fd67
2 changed files with 11 additions and 1 deletions
|
|
@ -37,7 +37,14 @@ MiniButton::MiniButton(const StockID& stock_id,
|
|||
add(image);
|
||||
set_relief(RELIEF_NONE);
|
||||
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
|
||||
} // gui
|
||||
|
|
|
|||
|
|
@ -47,6 +47,9 @@ public:
|
|||
MiniButton(const Gtk::StockID& stock_id,
|
||||
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:
|
||||
|
||||
Gtk::Image image;
|
||||
|
|
|
|||
Loading…
Reference in a new issue