[gnome-shell/wip/message-tray: 22/23] messageTray: Close the current box pointer when clicking on the tray
- From: Marina Zhurakhinskaya <marinaz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 22/23] messageTray: Close the current box pointer when clicking on the tray
- Date: Sun, 19 Aug 2012 21:18:55 +0000 (UTC)
commit b65543bfd1b2503e5f199a9e2aee0121a8745ece
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 16 13:53:07 2012 -0400
messageTray: Close the current box pointer when clicking on the tray
js/ui/messageTray.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index b5d0b0b..7d2bfe0 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1321,7 +1321,13 @@ const MessageTray = new Lang.Class({
this._notification = null;
this._notificationClickedId = 0;
- this._summaryBin = new St.Bin({ x_align: St.Align.END });
+ this._summaryBin = new St.Bin({ x_align: St.Align.END,
+ reactive: true });
+ this._summaryBin.connect('button-release-event', Lang.bind(this, function(actor, event) {
+ this._setClickedSummaryItem(null);
+ this._updateState();
+ actor.grab_key_focus();
+ }));
this.actor.add_actor(this._summaryBin);
this._summary = new St.BoxLayout({ name: 'summary-mode',
reactive: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]