Bind ctrl-enter to apply-operations

Bind the keyboard accelerator key ctrl-enter to apply operations.
This commit is contained in:
Phillip Susi 2013-01-20 23:20:11 -05:00 committed by Curtis Gedak
parent 3dd769d955
commit 2a2d21c231
1 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ void Win_GParted::init_menubar()
menu ->items() .push_back( Gtk::Menu_Helpers::ImageMenuElem( menu ->items() .push_back( Gtk::Menu_Helpers::ImageMenuElem(
_("_Apply All Operations"), _("_Apply All Operations"),
Gtk::AccelKey(GDK_Return, Gdk::CONTROL_MASK),
* manage( new Gtk::Image( Gtk::Stock::APPLY, Gtk::ICON_SIZE_MENU ) ), * manage( new Gtk::Image( Gtk::Stock::APPLY, Gtk::ICON_SIZE_MENU ) ),
sigc::mem_fun(*this, &Win_GParted::activate_apply) ) ); sigc::mem_fun(*this, &Win_GParted::activate_apply) ) );
menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) ); menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) );