[polari/gnome-3-32] mainWindow: Pop up userlist popover
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/gnome-3-32] mainWindow: Pop up userlist popover
- Date: Sun, 12 May 2019 20:46:34 +0000 (UTC)
commit 4fabfba2548ab6b66b7877391939af96287216ef
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Apr 21 23:43:23 2019 +0200
mainWindow: Pop up userlist popover
At one point, GTK removed the hack to animate popover visibility changes on
show()/hide() and added explicit popup()/popdown() methods for transitions.
We want to animate the popover reveal, so switch to the appropriate methods.
https://bugzilla.gnome.org/show_bug.cgi?id=768851
src/mainWindow.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index c52f25d..3229589 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -175,7 +175,10 @@ var MainWindow = GObject.registerClass({
this._userListAction = app.lookup_action('user-list');
app.connect('action-state-changed::user-list', (group, name, value) => {
- this._userListPopover.visible = value.get_boolean();
+ if (value.get_boolean())
+ this._userListPopover.popup();
+ else
+ this._userListPopover.popdown();
});
this._userListPopover.connect('notify::visible', () => {
if (!this._userListPopover.visible)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]