From 3f6c1d3a0a0e4204972c20d29e98fabafadea1f0 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 28 Aug 2007 19:01:51 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/statemanager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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);*/ -- 2.7.4