[gnome-nibbles/arnaudb/wip/gtk4: 183/188] Waiting for a Gtk fix.




commit 332bdb205346143560ef49676068c33eab6998f3
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Oct 2 15:53:22 2020 +0200

    Waiting for a Gtk fix.

 src/nibbles-window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index 2964062..f99d24b 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -315,9 +315,9 @@ private class NibblesWindow : ApplicationWindow
     private EventControllerKey key_controller;          // for keeping in memory
     private bool key_press_event_cb (EventControllerKey _key_controller, uint keyval, uint keycode, 
Gdk.ModifierType state)
     {
-        if (hamburger_menu.active)
+        /* if (hamburger_menu.active)
             return false;
-        else if ((!) (Gdk.keyval_name (keyval) ?? "") == "F1")
+        else */ if ((!) (Gdk.keyval_name (keyval) ?? "") == "F1")
             return ((Nibbles) application).on_f1_pressed (state);   // TODO fix dance done with the F1 & 
<Control>F1 shortcuts that show help overlay
         else
             return game.handle_keypress (keyval);
@@ -483,7 +483,7 @@ private class NibblesWindow : ApplicationWindow
 
     private void hamburger_cb ()
     {
-        hamburger_menu.active = !hamburger_menu.active;
+//        hamburger_menu.active = !hamburger_menu.active;
     }
 
     /*\


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