Fix the tooltips on the toolbox buttons for all the different tools.
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 27 Aug 2007 00:21:24 +0000 (00:21 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 27 Aug 2007 00:21:24 +0000 (00:21 +0000)
git-svn-id: http://svn.voria.com/code@558 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/toolbox.cpp

index 7559f32..f29025d 100644 (file)
@@ -481,12 +481,15 @@ Toolbox::add_state(const Smach::state_base *state)
 
        String name=state->get_name();
 
+       Gtk::StockItem stock_item;
+       Gtk::Stock::lookup(Gtk::StockID("synfig-"+name),stock_item);
+
        Gtk::ToggleButton* button;
        button=manage(new class Gtk::ToggleButton());
 
-       icon=manage(new Gtk::Image(Gtk::StockID("synfig-"+name),Gtk::IconSize(4)));
+       icon=manage(new Gtk::Image(stock_item.get_stock_id(),Gtk::IconSize(4)));
        button->add(*icon);
-       tooltips.set_tip(*button,name);
+       tooltips.set_tip(*button,stock_item.get_label());
        icon->show();
        button->show();