[gparted/psusi/refactor: 8/16] Bind Insert key to new partition



commit 024733642d5ffcc360f7e8c04208f9811ab3d3a3
Author: Phillip Susi <psusi ubuntu com>
Date:   Sun Jan 20 22:52:52 2013 -0500

    Bind Insert key to new partition
    
    Add an accelerator key for Insert to trigger the new partition menu item.

 src/Win_GParted.cc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 61e3802..79a07db 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -309,8 +309,9 @@ void Win_GParted::init_partition_menu()
 	image = manage( new Gtk::Image( Gtk::Stock::NEW, Gtk::ICON_SIZE_MENU ) );
 	menu_partition .items() .push_back( 
 			/*TO TRANSLATORS: "_New" is a sub menu item for the partition menu. */
-			Gtk::Menu_Helpers::ImageMenuElem( _("_New"), 
-							  *image, 
+			Gtk::Menu_Helpers::ImageMenuElem( _("_New"),
+							  Gtk::AccelKey( GDK_Insert, Gdk::BUTTON1_MASK),
+							  *image,
 							  sigc::mem_fun(*this, &Win_GParted::activate_new) ) );
 	MENU_NEW = index++ ;
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]