From 4a3a61bea14af550d6b96a3ed22b6c4746d29b1e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 17 Feb 2013 14:30:04 -0500 Subject: [PATCH] messageTray: Jiggle some code around This is to put state management with state management https://bugzilla.gnome.org/show_bug.cgi?id=694038 --- js/ui/messageTray.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 942556499..16064ebde 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1864,11 +1864,6 @@ const MessageTray = new Lang.Class({ return false; }, - openTray: function() { - this._traySummoned = true; - this._updateState(); - }, - _onNotificationKeyRelease: function(actor, event) { if (event.get_key_symbol() == Clutter.KEY_Escape && event.get_state() == 0) { this._closeNotification(); @@ -2035,6 +2030,11 @@ const MessageTray = new Lang.Class({ this._updateState(); }, + openTray: function() { + this._traySummoned = true; + this._updateState(); + }, + toggle: function() { this._traySummoned = !this._traySummoned; this._updateState();