[swell-foop/arnaudb/wip/gtk4: 20/30] Comment waiting for MenuButton to gain active property.




commit 955fbfdcf97b02f5df725387d9aad8a4fa27cd6d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue May 12 21:36:02 2020 +0200

    Comment waiting for MenuButton to gain active property.

 src/window.vala | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 00226d6..74511de 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -309,7 +309,8 @@ private class SwellFoopWindow : ApplicationWindow
 
     private inline void toggle_hamburger (/* SimpleAction action, Variant? variant */)
     {
-        hamburger_button.active = !hamburger_button.active;
+//        hamburger_button.active = !hamburger_button.active;
+        hamburger_button.popup ();    // TODO toggle
     }
 
     private inline void undo (/* SimpleAction action, Variant? variant */)
@@ -337,8 +338,8 @@ private class SwellFoopWindow : ApplicationWindow
 
     private inline bool on_key_pressed (EventControllerKey _key_controller, uint keyval, uint keycode, 
Gdk.ModifierType state)
     {
-        if (hamburger_button.get_active())
-            return false;
+//        if (hamburger_button.get_active())
+//            return false;
 
         switch (keyval)
         {


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