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

@ -166,7 +166,8 @@ void Win_GParted::init_menubar()
sigc::mem_fun(*this, &Win_GParted::clear_operationslist) ) );
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 ) ),
sigc::mem_fun(*this, &Win_GParted::activate_apply) ) );
menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) );