[gparted/psusi/refactor: 9/20] Bind Insert key to new partition
- From: Phillip Susi <psusi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gparted/psusi/refactor: 9/20] Bind Insert key to new partition
- Date: Sun, 17 Feb 2013 19:22:57 +0000 (UTC)
commit e3474bce5e3f1215d1aae591b615f6a8cc60ed36
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 701a530..5f0496e 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]