/* === S Y N F I G ========================================================= */
-/*! \file template.cpp
+/*! \file statemanager.cpp
** \brief Template File
**
-** $Id: statemanager.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
+** $Id$
**
** \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
{
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);*/