[gparted/psusi/refactor: 9/19] Bind Insert key to new partition
- From: Phillip Susi <psusi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted/psusi/refactor: 9/19] Bind Insert key to new partition
- Date: Fri, 22 Feb 2013 01:53:20 +0000 (UTC)
commit 4009e20e1b1686620b58eb4d2553b73bf6f1faaa
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 adaa564..e804503 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]