[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gcmd-dev] [PATCH] Don't use F10 as a menu accelerator
From: |
Thomas Jost |
Subject: |
[gcmd-dev] [PATCH] Don't use F10 as a menu accelerator |
Date: |
Fri, 12 Nov 2010 21:13:22 +0100 |
GNOME HIG guidelines state that F10 should "give focus to window's menu bar",
but here it supposed to cause the application to exit. Restore this behaviour by
setting the corresponding acceletarot to "VoidSymbol", which in X means "no
key".
This probably closes #352024.
---
src/gnome-cmd-main-win.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 9ec9af6..df5b12e 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -452,6 +452,12 @@ void GnomeCmdMainWin::create_buttonbar()
g_signal_connect (priv->delete_btn, "clicked", G_CALLBACK
(on_delete_clicked), this);
g_signal_connect (priv->find_btn, "clicked", G_CALLBACK
(on_search_clicked), this);
g_signal_connect (priv->quit_btn, "clicked", G_CALLBACK (on_quit_clicked),
this);
+
+ // Disable F10 as the default menu accelerator
+ gtk_settings_set_string_property (gtk_settings_get_default (),
+ "gtk-menu-bar-accel",
+ "VoidSymbol",
+ "gnome-commander");
}
--
1.7.3.2
- [gcmd-dev] [PATCH] Don't use F10 as a menu accelerator,
Thomas Jost <=