[gnome-shell] quickSettings: Bind menu arrow's reactivity to parent



commit 0fdca0d21a7e7022fac5c7583da988815876baf6
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Aug 5 22:01:30 2022 +0200

    quickSettings: Bind menu arrow's reactivity to parent
    
    When a QuickMenuToggle is made insensitive, then it is unexpected
    that its menu can still be opened despite the appearance.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2405>

 js/ui/quickSettings.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js
index 889833a73f..50dbf6f351 100644
--- a/js/ui/quickSettings.js
+++ b/js/ui/quickSettings.js
@@ -123,7 +123,10 @@ var QuickMenuToggle = GObject.registerClass({
 
         this.bind_property('menu-enabled',
             this._menuButton, 'visible',
-            GObject.BindingFlags.DEFAULT);
+            GObject.BindingFlags.SYNC_CREATE);
+        this.bind_property('reactive',
+            this._menuButton, 'reactive',
+            GObject.BindingFlags.SYNC_CREATE);
         this._menuButton.connect('clicked', () => this.menu.open());
         this.connect('popup-menu', () => {
             if (this.menuEnabled)


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