mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
quickSettings: Bind the outer button's toggle-mode to the inner buttons
When the `QuickMenuToggle` was a discrete button, it could be set to toggle mode, but the inner buttons no longer reacts as expected. Bind the `toggle-mode` property between the `QuickMenuToggle` and its contents so they behave as single toggle when enabled. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2664>
This commit is contained in:
parent
b89d90eb80
commit
d5f868bb25
1 changed files with 5 additions and 1 deletions
|
|
@ -186,9 +186,13 @@ var QuickMenuToggle = GObject.registerClass({
|
|||
});
|
||||
this._box.add_child(this._menuButton);
|
||||
|
||||
this.bind_property('toggle-mode',
|
||||
contents, 'toggle-mode',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
this.bind_property('checked',
|
||||
contents, 'checked',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
GObject.BindingFlags.SYNC_CREATE |
|
||||
GObject.BindingFlags.BIDIRECTIONAL);
|
||||
this.bind_property('title',
|
||||
contents, 'title',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue