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



commit a373d4d8626ac3501bfc9c9a60c530ae2dff583a
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 e318531..1567c35 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]