X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fgtkmm%2Fstatemanager.cpp;h=4a6828cdf066247dd06c3322d66fee7783b5dbc6;hb=c33037508a9f5a0607b14f3feed692a0d364d68a;hp=ed165822c737eeee21f99ddd7841ea23505a16be;hpb=4cb5360f578f79e5d9e234570018d762ea0a964f;p=synfig.git diff --git a/synfig-studio/tags/stable/src/gtkmm/statemanager.cpp b/synfig-studio/tags/stable/src/gtkmm/statemanager.cpp index ed16582..4a6828c 100644 --- a/synfig-studio/tags/stable/src/gtkmm/statemanager.cpp +++ b/synfig-studio/tags/stable/src/gtkmm/statemanager.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -36,6 +37,8 @@ #include "app.h" #include "toolbox.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -79,12 +82,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);*/