Use pabs' trick from r558 to fix the tool names in the 'state' menu.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 28 Aug 2007 19:01:51 +0000 (19:01 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 28 Aug 2007 19:01:51 +0000 (19:01 +0000)
git-svn-id: http://svn.voria.com/code@559 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index ed16582..9223446 100644 (file)
@@ -79,12 +79,15 @@ StateManager::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);
+
        Glib::RefPtr<Gtk::Action> action(
                Gtk::Action::create(
                        "state-"+name,
-                       Gtk::StockID("synfig-"+name),
-                       name,
-                       name
+                       stock_item.get_stock_id(),
+                       stock_item.get_label(),
+                       stock_item.get_label()
                )
        );
        /*action->set_sensitive(false);*/