Bind ctrl-enter to apply-operations
Bind the keyboard accelerator key ctrl-enter to apply operations.
This commit is contained in:
parent
3dd769d955
commit
2a2d21c231
|
@ -166,7 +166,8 @@ void Win_GParted::init_menubar()
|
||||||
sigc::mem_fun(*this, &Win_GParted::clear_operationslist) ) );
|
sigc::mem_fun(*this, &Win_GParted::clear_operationslist) ) );
|
||||||
|
|
||||||
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 ) );
|
||||||
|
|
Loading…
Reference in New Issue