Bind Insert key to new partition

Add an accelerator key for Insert to trigger the new partition menu item.
This commit is contained in:
Phillip Susi 2013-01-20 22:52:52 -05:00 committed by Curtis Gedak
parent 723209e59f
commit 9ad53d94a0
1 changed files with 3 additions and 2 deletions

View File

@ -310,6 +310,7 @@ void Win_GParted::init_partition_menu()
menu_partition .items() .push_back(
/*TO TRANSLATORS: "_New" is a sub menu item for the partition menu. */
Gtk::Menu_Helpers::ImageMenuElem( _("_New"),
Gtk::AccelKey( GDK_Insert, Gdk::BUTTON1_MASK),
*image,
sigc::mem_fun(*this, &Win_GParted::activate_new) ) );
MENU_NEW = index++ ;