summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2541a53)
raw | patch | inline | side by side (parent: 2541a53)
author | joncruz <joncruz@users.sourceforge.net> | |
Mon, 7 Jul 2008 08:09:45 +0000 (08:09 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Mon, 7 Jul 2008 08:09:45 +0000 (08:09 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index 401179a655a910858c2220718fb26372cf1c6775..8f3c570c54d30af33c65b77abf17af574a48fa13 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -512,7 +512,7 @@ Glib::RefPtr<VerbAction> VerbAction::create(Inkscape::Verb* verb, Inkscape::Verb
}
VerbAction::VerbAction(Inkscape::Verb* verb, Inkscape::Verb* verb2, Inkscape::UI::View::View *view, GtkTooltips *tooltips) :
- Gtk::Action(Glib::ustring(verb->get_id()), Gtk::StockID(GTK_STOCK_ABOUT), Glib::ustring(_(verb->get_name())), Glib::ustring(_(verb->get_tip()))),
+ Gtk::Action(Glib::ustring(verb->get_id()), Gtk::StockID(verb->get_image()), Glib::ustring(_(verb->get_name())), Glib::ustring(_(verb->get_tip()))),
verb(verb),
verb2(verb2),
view(view),
Gtk::Widget* VerbAction::create_menu_item_vfunc()
{
+// First call in to get the icon rendered if present in SVG
+ Gtk::Widget *widget = sp_icon_get_icon( property_stock_id().get_value().get_string(), Inkscape::ICON_SIZE_MENU );
+ delete widget;
+ widget = 0;
+
Gtk::Widget* widg = Gtk::Action::create_menu_item_vfunc();
// g_message("create_menu_item_vfunc() = %p for '%s'", widg, verb->get_id());
return widg;