Added MiniButton::set_stock_id

This commit is contained in:
Joel Holdsworth 2009-03-14 14:25:39 +00:00
parent 94242b779a
commit d15264fd67
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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;