Bind Insert key to new partition
Add an accelerator key for Insert to trigger the new partition menu item.
This commit is contained in:
parent
723209e59f
commit
9ad53d94a0
|
@ -310,6 +310,7 @@ void Win_GParted::init_partition_menu()
|
||||||
menu_partition .items() .push_back(
|
menu_partition .items() .push_back(
|
||||||
/*TO TRANSLATORS: "_New" is a sub menu item for the partition menu. */
|
/*TO TRANSLATORS: "_New" is a sub menu item for the partition menu. */
|
||||||
Gtk::Menu_Helpers::ImageMenuElem( _("_New"),
|
Gtk::Menu_Helpers::ImageMenuElem( _("_New"),
|
||||||
|
Gtk::AccelKey( GDK_Insert, Gdk::BUTTON1_MASK),
|
||||||
*image,
|
*image,
|
||||||
sigc::mem_fun(*this, &Win_GParted::activate_new) ) );
|
sigc::mem_fun(*this, &Win_GParted::activate_new) ) );
|
||||||
MENU_NEW = index++ ;
|
MENU_NEW = index++ ;
|
||||||
|
|
Loading…
Reference in New Issue