[vte] app: Disable menubar accel



commit 78c05007983fa2f8fe09bc04be944c33643ee38c
Author: Christian Persch <chpe gnome org>
Date:   Fri Nov 13 11:11:31 2015 +0100

    app: Disable menubar accel
    
    Prevent the gtk+ CSD decorations from handling F10, which belongs
    to the terminal, like ALL keys.

 src/app.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index c233a48..f706ae1 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -758,6 +758,12 @@ class App : Gtk.Application
   {
     Object(application_id: "org.gnome.Vte.Test.App",
            flags: ApplicationFlags.NON_UNIQUE);
+
+    var settings = Gtk.Settings.get_default();
+    settings.gtk_enable_mnemonics = false;
+    settings.gtk_enable_accels = false;
+    /* Make gtk+ CSD not steal F10 from the terminal */
+    settings.gtk_menu_bar_accel = null;
   }
 
   protected override void startup()


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