From eda17defb2ab559f21964f02aec7424e5b3cb760 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 4 Sep 2012 19:03:47 -0300 Subject: [PATCH] messageTray: Move close button above notification widget stack This allows us to click on the entire close button, not just the part of it that's unobscured. --- js/ui/messageTray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 31fa470a3..1f1593dcc 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1204,7 +1204,6 @@ const SummaryItem = new Lang.Class({ this.emit('done-displaying-content'); })); - this.notificationStackWidget.add_actor(this._closeButton); this.notificationStackView = new St.ScrollView({ style_class: source.isChat ? '' : 'summary-notification-stack-scrollview', vscrollbar_policy: source.isChat ? Gtk.PolicyType.NEVER : Gtk.PolicyType.AUTOMATIC, hscrollbar_policy: Gtk.PolicyType.NEVER }); @@ -1213,6 +1212,7 @@ const SummaryItem = new Lang.Class({ vertical: true }); this.notificationStackView.add_actor(this.notificationStack); this.notificationStackWidget.add_actor(this.notificationStackView); + this.notificationStackWidget.add_actor(this._closeButton); this._stackedNotifications = []; this._oldMaxScrollAdjustment = 0;