[vte] app: Disable menubar accel
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] app: Disable menubar accel
- Date: Fri, 13 Nov 2015 17:26:16 +0000 (UTC)
commit 2ecc4f1e56d8f116b777d6426594ab0ea7b7e08c
Author: Christian Persch <chpe gnome org>
Date: Fri Nov 13 18:25:34 2015 +0100
app: Disable menubar accel
Prevent the gtk+ CSD decorations from handling F10, which belongs
to the terminal, like ALL keys.
src/vteapp.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 844dbfc..80609a4 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -868,6 +868,13 @@ main(int argc, char **argv)
gdk_window_set_debug_updates(debug);
+ g_object_set(gtk_settings_get_default(),
+ "gtk-enable-mnemonics", FALSE,
+ "gtk-enable-accels",FALSE,
+ /* Make gtk+ CSD not steal F10 from the terminal */
+ "gtk-menu-bar-accel", NULL,
+ NULL);
+
/* Create a window to hold the scrolling shell, and hook its
* delete event to the quit function.. */
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]