After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704163 - [PATCH] shellDBus: Emit a PropertyChanged for OverviewActive
[PATCH] shellDBus: Emit a PropertyChanged for OverviewActive
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: overview
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks: 658602
 
 
Reported: 2013-07-13 19:00 UTC by Colin Walters
Modified: 2014-11-13 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-shellDBus-Emit-a-PropertyChanged-for-OverviewActive.patch (1.85 KB, patch)
2013-07-13 19:01 UTC, Colin Walters
none Details | Review
shellDBus: Emit a PropertyChanged for OverviewActive (1.87 KB, patch)
2014-11-07 19:11 UTC, Bastien Nocera
committed Details | Review

Description Colin Walters 2013-07-13 19:00:36 UTC
I was going to add another DBus property to signal when the shell was
done loading and was idle, and while implementing that I noticed we
aren't emitting PropertyChanged for, well, any property.  Let's fix
OverviewActive.

It's unfortunate it's so tedious to correctly implement a DBus
property =/
---
 js/ui/shellDBus.js |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
Comment 1 Colin Walters 2013-07-13 19:01:05 UTC
Created attachment 249070 [details] [review]
0001-shellDBus-Emit-a-PropertyChanged-for-OverviewActive.patch
Comment 2 Bastien Nocera 2014-11-07 19:11:11 UTC
Created attachment 290200 [details] [review]
shellDBus: Emit a PropertyChanged for OverviewActive

I was going to add another DBus property to signal when the shell was
done loading and was idle, and while implementing that I noticed we
aren't emitting PropertyChanged for, well, any property.  Let's fix
OverviewActive.

It's unfortunate it's so tedious to correctly implement a DBus
property =/
Comment 3 Florian Müllner 2014-11-12 19:44:34 UTC
Review of attachment 290200 [details] [review]:

::: js/ui/shellDBus.js
@@ +243,3 @@
 
+    _checkOverviewVisibleChanged: function() {
+        if (Main.overview.visible !== this._cachedOverviewVisible) {

The safe-guards in Overview should already make sure that ::showing and ::hidden are only emitted on actual Overview:visible changes, but OK - some extra checks don't hurt.
Comment 4 Florian Müllner 2014-11-13 18:18:20 UTC
Attachment 290200 [details] pushed as 891f30f - shellDBus: Emit a PropertyChanged for OverviewActive