From: dooglus Date: Tue, 28 Aug 2007 19:01:51 +0000 (+0000) Subject: Use pabs' trick from r558 to fix the tool names in the 'state' menu. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3f6c1d3a0a0e4204972c20d29e98fabafadea1f0;p=synfig.git Use pabs' trick from r558 to fix the tool names in the 'state' menu. git-svn-id: http://svn.voria.com/code@559 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/statemanager.cpp b/synfig-studio/trunk/src/gtkmm/statemanager.cpp index ed16582..9223446 100644 --- a/synfig-studio/trunk/src/gtkmm/statemanager.cpp +++ b/synfig-studio/trunk/src/gtkmm/statemanager.cpp @@ -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 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);*/