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
|
@ -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 ) );
|
||||||
|
|
Loading…
Reference in New Issue