[gparted/psusi/refactor: 11/19] Bind ctrl-enter to apply-operations



commit caa76534df832212cecc486101de39925457130d
Author: Phillip Susi <psusi ubuntu com>
Date:   Sun Jan 20 23:20:11 2013 -0500

    Bind ctrl-enter to apply-operations
    
    Bind the keyboard accelerator key ctrl-enter to apply operations.

 src/Win_GParted.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 3da063a..92cec19 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -166,7 +166,8 @@ void Win_GParted::init_menubar()
                sigc::mem_fun(*this, &Win_GParted::clear_operationslist) ) );
 
        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 ) ), 
                sigc::mem_fun(*this, &Win_GParted::activate_apply) ) );
        menubar_main .items() .push_back( Gtk::Menu_Helpers::MenuElem( _("_Edit"), *menu ) );


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