From: dooglus Date: Wed, 16 Jan 2008 21:50:21 +0000 (+0000) Subject: Add 'new', 'open' and 'quit' to the caret>file menu. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b697833cd00199e278cdd5ce3ec71a32c65eb196;p=synfig.git Add 'new', 'open' and 'quit' to the caret>file menu. git-svn-id: http://svn.voria.com/code@1386 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 504d0a0..aeb07c2 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -591,6 +591,7 @@ init_ui_manager() DEFINE_ACTION2("keyframe-properties", Gtk::StockID("gtk-properties"), _("Keyframe Properties")); DEFINE_ACTION("about", Gtk::StockID("synfig-about")); + DEFINE_ACTION("new", Gtk::Stock::NEW); DEFINE_ACTION("open", Gtk::Stock::OPEN); DEFINE_ACTION("save", Gtk::Stock::SAVE); DEFINE_ACTION("save-as", Gtk::Stock::SAVE_AS); @@ -607,6 +608,7 @@ init_ui_manager() DEFINE_ACTION("options", _("Options")); DEFINE_ACTION("close", _("Close View")); DEFINE_ACTION("close-document", _("Close Document")); + DEFINE_ACTION("quit", Gtk::Stock::QUIT); DEFINE_ACTION("undo", Gtk::StockID("gtk-undo")); @@ -709,6 +711,8 @@ init_ui_manager() " " " " " " +" " +" " " " " " " " @@ -727,6 +731,7 @@ init_ui_manager() " " " " " " +" " " " " " " " diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index dcc436b..4f6dec9 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1180,6 +1180,12 @@ CanvasView::init_menus() action_group = Gtk::ActionGroup::create(); //action_group->add( Gtk::Action::create("MenuFile", _("_File")) ); + action_group->add( Gtk::Action::create("new", Gtk::Stock::NEW), + sigc::hide_return(sigc::ptr_fun(&studio::App::new_instance)) + ); + action_group->add( Gtk::Action::create("open", Gtk::Stock::OPEN), + sigc::hide_return(sigc::ptr_fun(&studio::App::dialog_open)) + ); action_group->add( Gtk::Action::create("save", Gtk::Stock::SAVE), hide_return(sigc::mem_fun(*get_instance().get(), &studio::Instance::save)) ); @@ -1222,6 +1228,9 @@ CanvasView::init_menus() action_group->add( Gtk::Action::create("close-document", Gtk::StockID("gtk-close"), _("Close Document")), sigc::hide_return(sigc::mem_fun(*this,&studio::CanvasView::close_instance)) ); + action_group->add( Gtk::Action::create("quit", Gtk::StockID("gtk-quit"), _("Quit")), + sigc::hide_return(sigc::ptr_fun(&studio::App::quit)) + ); //action_group->add( Gtk::Action::create("undo", Gtk::StockID("gtk-undo")), // SLOT_EVENT(EVENT_UNDO)