[gnome-shell/origin/gnome-3-10] messageTray: Only attempt to grab the summary box pointer after showing it
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/origin/gnome-3-10] messageTray: Only attempt to grab the summary box pointer after showing it
- Date: Wed, 18 Dec 2013 15:12:23 +0000 (UTC)
commit ac341e20281b6e2d589e8e83503ddf5d18141a36
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Dec 3 19:21:08 2013 -0500
messageTray: Only attempt to grab the summary box pointer after showing it
For mysterious reasons I'm not sure of myself, navigate_focus will only focus
mapped actors. So, make sure the widget is showing before navigating to it.
https://bugzilla.gnome.org/show_bug.cgi?id=709853
js/ui/messageTray.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index fa24c13..d97b24b 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2809,13 +2809,13 @@ const MessageTray = new Lang.Class({
Lang.bind(this,
this._onSourceDoneDisplayingContent));
this._summaryBoxPointer.bin.child = child;
- this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child,
- onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) });
-
this._summaryBoxPointer.actor.opacity = 0;
this._summaryBoxPointer.actor.show();
this._adjustSummaryBoxPointerPosition();
+ this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child,
+ onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) });
+
this._summaryBoxPointerState = State.SHOWING;
this._summaryBoxPointer.show(BoxPointer.PopupAnimation.FULL, Lang.bind(this, function() {
this._summaryBoxPointerState = State.SHOWN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]