[gnome-shell/wip/message-tray: 32/33] messageTray: Close the current box pointer when clicking on the tray
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 32/33] messageTray: Close the current box pointer when clicking on the tray
- Date: Thu, 16 Aug 2012 17:59:49 +0000 (UTC)
commit 25ec8cbcb7ee3e05eeb5c968ee09329340d608ea
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 75b2f92..78c15f0 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1297,7 +1297,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]