Glib::RefPtr<Gtk::ActionGroup> toolbox_action_group = Gtk::ActionGroup::create("toolbox");
- Glib::RefPtr<Gtk::ActionGroup> actions_action_group = Gtk::ActionGroup::create();
+ Glib::RefPtr<Gtk::ActionGroup> actions_action_group = Gtk::ActionGroup::create("actions");
menus_action_group->add( Gtk::Action::create("menu-file", _("_File")) );
menus_action_group->add( Gtk::Action::create("menu-edit", _("_Edit")) );
- canvasmenu
- viewmenu
*/
- action_group = Gtk::ActionGroup::create();
+ action_group = Gtk::ActionGroup::create("mainmenu");
//action_group->add( Gtk::Action::create("MenuFile", _("_File")) );
action_group->add( Gtk::Action::create("new", Gtk::Stock::NEW),
Dock_History::Dock_History():
Dock_CanvasSpecific("history",_("History"),Gtk::StockID("gtk-undo")),
- action_group(Gtk::ActionGroup::create())
+ action_group(Gtk::ActionGroup::create("action_group_dock_history"))
{
App::signal_instance_deleted().connect(sigc::mem_fun(*this,&studio::Dock_History::delete_instance));
App::signal_instance_selected().connect(sigc::mem_fun(*this,&studio::Dock_History::set_selected_instance_signal));
Dock_Keyframes::Dock_Keyframes():
Dock_CanvasSpecific("keyframes",_("Keyframes"),Gtk::StockID("synfig-keyframes")),
- action_group(Gtk::ActionGroup::create()),
+ action_group(Gtk::ActionGroup::create("action_group_dock_keyframes")),
keyframe_action_manager(new KeyframeActionManager)
{
keyframe_action_manager->set_ui_manager(App::ui_manager());
Dock_LayerGroups::Dock_LayerGroups():
Dock_CanvasSpecific("groups",_("Groups"),Gtk::StockID("synfig-group")),
- action_group_group_ops(Gtk::ActionGroup::create()),
+ action_group_group_ops(Gtk::ActionGroup::create("action_group_dock_layergroups")),
group_action_manager(new GroupActionManager)
{
group_action_manager->set_ui_manager(App::ui_manager());
{
if(layer_action_manager)layer_action_manager->set_ui_manager(App::ui_manager());
- action_group_new_layers=Gtk::ActionGroup::create();
- action_group_layer_ops=Gtk::ActionGroup::create();
+ action_group_new_layers=Gtk::ActionGroup::create("action_group_new_layers");
+ action_group_layer_ops=Gtk::ActionGroup::create("action_group_layer_ops");
std::map<synfig::String,synfig::String> category_map;
Dock_Params::Dock_Params():
Dock_CanvasSpecific("params",_("Params"),Gtk::Stock::INDEX/*Gtk::StockID("synfig-params")*/),
- action_group(Gtk::ActionGroup::create())
+ action_group(Gtk::ActionGroup::create("action_group_dock_params"))
{
/*
App::ui_manager()->insert_action_group(action_group_layer_ops);
/* === M E T H O D S ======================================================= */
GroupActionManager::GroupActionManager():
- action_group_(Gtk::ActionGroup::create()),
+ action_group_(Gtk::ActionGroup::create("action_group_group_action_manager")),
popup_id_(no_prev_popup),
queued(false)
{
action_group_->set_sensitive(true);
#else
get_ui_manager()->remove_action_group(action_group_);
- action_group_=Gtk::ActionGroup::create();
+ action_group_=Gtk::ActionGroup::create("action_group_group_action_manager");
#endif
}
}
/* === M E T H O D S ======================================================= */
KeyframeActionManager::KeyframeActionManager():
- action_group_(Gtk::ActionGroup::create()),
+ action_group_(Gtk::ActionGroup::create("action_group_keyframe_action_manager")),
popup_id_(no_prev_popup),
queued(false)
{
while(!action_group_->get_actions().empty())action_group_->remove(*action_group_->get_actions().begin());
#else
get_ui_manager()->remove_action_group(action_group_);
- action_group_=Gtk::ActionGroup::create();
+ action_group_=Gtk::ActionGroup::create("action_group_keyframe_action_manager");
#endif
}
}
/* === M E T H O D S ======================================================= */
LayerActionManager::LayerActionManager():
- action_group_(Gtk::ActionGroup::create()),
+ action_group_(Gtk::ActionGroup::create("action_group_layer_action_manager")),
popup_id_(no_prev_popup),
- action_group_copy_paste(Gtk::ActionGroup::create()),
+ action_group_copy_paste(Gtk::ActionGroup::create("action_group_copy_paste")),
queued(false)
{
action_cut_=Gtk::Action::create(
#ifdef ONE_ACTION_GROUP
#else
if(action_group_)get_ui_manager()->remove_action_group(action_group_);
- action_group_=Gtk::ActionGroup::create();
+ action_group_=Gtk::ActionGroup::create("action_group_layer_action_manager");
#endif
}
}
//palette_settings(new PaletteSettings(this,"colors")),
table(2,2,false)
{
- action_group=Gtk::ActionGroup::create();
+ action_group=Gtk::ActionGroup::create("action_group_pal_edit");
action_group->add(Gtk::Action::create(
"palette-add-color",
Gtk::StockID("gtk-add"),
}
StateSketch_Context::StateSketch_Context(CanvasView* canvas_view):
- action_group(Gtk::ActionGroup::create()),
+ action_group(Gtk::ActionGroup::create("action_group_state_sketch")),
canvas_view_(canvas_view),
is_working(*canvas_view),
prev_workarea_layer_status_(get_work_area()->get_allow_layer_clicks()),
/* === M E T H O D S ======================================================= */
StateManager::StateManager():
- state_group(Gtk::ActionGroup::create()),
+ state_group(Gtk::ActionGroup::create("action_group_state_manager")),
merge_id(App::ui_manager()->new_merge_id())
{
App::ui_manager()->insert_action_group(get_action_group());