X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstatemanager.cpp;h=72c0724da40753269903cc769c54663dba8d2d52;hb=a23dfbb2d39104aceaf46ae740724ed4adf73fd8;hp=0c7f72e98aa15339ca462e52d4252210da13dc1a;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/statemanager.cpp b/synfig-studio/trunk/src/gtkmm/statemanager.cpp index 0c7f72e..72c0724 100644 --- a/synfig-studio/trunk/src/gtkmm/statemanager.cpp +++ b/synfig-studio/trunk/src/gtkmm/statemanager.cpp @@ -5,16 +5,17 @@ ** $Id: statemanager.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -77,7 +78,7 @@ void StateManager::add_state(const Smach::state_base *state) { String name(state->get_name()); - + Glib::RefPtr action( Gtk::Action::create( "state-"+name, @@ -88,14 +89,14 @@ StateManager::add_state(const Smach::state_base *state) ); /*action->set_sensitive(false);*/ state_group->add(action); - + action->signal_activate().connect( sigc::bind( sigc::mem_fun(*this,&studio::StateManager::change_state_), state ) ); - + App::ui_manager()->ensure_update(); /*App::ui_manager()->add_ui( @@ -105,10 +106,10 @@ StateManager::add_state(const Smach::state_base *state) "state-"+name ); */ - + String uid_def(""); merge_id_list.push_back(App::ui_manager()->add_ui_from_string(uid_def)); - + App::ui_manager()->ensure_update(); App::toolbox->add_state(state);