[gnome-shell/wip/message-tray: 33/33] messageTray: Close the current box pointer when clicking on the same item
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 33/33] messageTray: Close the current box pointer when clicking on the same item
- Date: Thu, 16 Aug 2012 17:59:54 +0000 (UTC)
commit 98cd5e45d5fb956c2e6f460e913f92edae282d07
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 16 13:54:03 2012 -0400
messageTray: Close the current box pointer when clicking on the same item
js/ui/messageTray.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 78c15f0..034f070 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1614,7 +1614,8 @@ const MessageTray = new Lang.Class({
if (summaryItem.source.handleSummaryClick()) {
this._setClickedSummaryItem(null);
} else {
- this._setClickedSummaryItem(summaryItem, button);
+ if (!this._setClickedSummaryItem(summaryItem, button))
+ this._setClickedSummaryItem(null);
}
this._updateState();
@@ -2213,7 +2214,7 @@ const MessageTray = new Lang.Class({
_setClickedSummaryItem: function(item, button) {
if (item == this._clickedSummaryItem &&
button == this._clickedSummaryItemMouseButton)
- return;
+ return false;
if (this._clickedSummaryItem) {
this._clickedSummaryItem.actor.remove_style_pseudo_class('selected');
@@ -2240,6 +2241,8 @@ const MessageTray = new Lang.Class({
this._trayMotionId = Main.layoutManager.trayBox.connect('notify::anchor-y',
Lang.bind(this, this._adjustSummaryBoxPointerPosition));
}
+
+ return true;
},
_onSummaryBoxPointerUngrabbed: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]