[swell-foop/arnaudb/wip/gtk4: 39/55] Comment waiting for MenuButton to gain active property.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [swell-foop/arnaudb/wip/gtk4: 39/55] Comment waiting for MenuButton to gain active property.
- Date: Tue, 14 Jul 2020 10:38:24 +0000 (UTC)
commit 1402103834bb412bd50c66c3a1b74439ab11abc4
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 1740156..bd42496 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]