[gnome-shell] messageTray: move the summary box pointer up when the keyboard shows
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: move the summary box pointer up when the keyboard shows
- Date: Fri, 23 Sep 2011 12:02:32 +0000 (UTC)
commit a8fdcffd443ecbfc7ad6f908a00f28c554622dcb
Author: Dan Winship <danw gnome org>
Date: Fri Sep 9 09:45:39 2011 -0400
messageTray: move the summary box pointer up when the keyboard shows
If the keyboard is shown when a summary boxpointer is visible (eg,
when opening a chat source), animate the boxpointer up with the tray.
https://bugzilla.gnome.org/show_bug.cgi?id=658603
js/ui/messageTray.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index cf149ea..f027487 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1356,6 +1356,7 @@ MessageTray.prototype = {
this._summaryBin.opacity = 0;
this._summaryMotionId = 0;
+ this._trayMotionId = 0;
this._summaryBoxPointer = new BoxPointer.BoxPointer(St.Side.BOTTOM,
{ reactive: true,
@@ -2272,6 +2273,8 @@ MessageTray.prototype = {
// _clickedSummaryItem.actor can change absolute position without changing allocation
this._summaryMotionId = this._summary.connect('allocation-changed',
Lang.bind(this, this._adjustSummaryBoxPointerPosition));
+ this._trayMotionId = Main.layoutManager.trayBox.connect('notify::anchor-y',
+ Lang.bind(this, this._adjustSummaryBoxPointerPosition));
this._summaryBoxPointer.actor.opacity = 0;
this._summaryBoxPointer.actor.show();
@@ -2303,8 +2306,10 @@ MessageTray.prototype = {
if (this._clickedSummaryItemAllocationChangedId) {
this._clickedSummaryItem.actor.disconnect(this._clickedSummaryItemAllocationChangedId);
this._summary.disconnect(this._summaryMotionId);
+ Main.layoutManager.trayBox.disconnect(this._trayMotionId);
this._clickedSummaryItemAllocationChangedId = 0;
this._summaryMotionId = 0;
+ this._trayMotionId = 0;
}
if (this._clickedSummaryItem)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]