[gnome-shell/wip/fmuellner/ease-actors: 1037/1052] pointerA11yTimeout: Use notify handler instead of onUpdate callback
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/ease-actors: 1037/1052] pointerA11yTimeout: Use notify handler instead of onUpdate callback
- Date: Tue, 6 Aug 2019 02:17:09 +0000 (UTC)
commit f9122969a7517bb13aacaa2b250c16c93c56843c
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 26 02:28:40 2019 +0200
pointerA11yTimeout: Use notify handler instead of onUpdate callback
We either need to queue a repaint on opacity updates or we don't,
whether the opacity change happens in an animation or not shouldn't
matter.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
js/ui/pointerA11yTimeout.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/pointerA11yTimeout.js b/js/ui/pointerA11yTimeout.js
index 67b58f8af..c56f898e0 100644
--- a/js/ui/pointerA11yTimeout.js
+++ b/js/ui/pointerA11yTimeout.js
@@ -17,6 +17,8 @@ class PieTimer extends St.DrawingArea {
can_focus: false,
reactive: false
});
+
+ this.connect('notify::opacity', () => this.queue_repaint());
}
vfunc_repaint() {
@@ -69,7 +71,6 @@ class PieTimer extends St.DrawingArea {
{ opacity: 255,
time: duration / 1000,
transition: 'easeOutQuad',
- onUpdate: () => this.queue_repaint(),
onComplete: () => this.stop()
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]