messageTray: make SummaryItem._closeButton public
Use this to show/hide the close button instead of closeButtonVisible. https://bugzilla.gnome.org/show_bug.cgi?id=682237
This commit is contained in:

committed by
Florian Müllner

parent
678d3623ed
commit
972267e215
@ -187,7 +187,7 @@ const NotificationsBox = new Lang.Class({
|
||||
|
||||
if (obj.resident) {
|
||||
this._residentNotificationBox.add(item.notificationStackWidget);
|
||||
item.closeButtonVisible = false;
|
||||
item.closeButton.hide();
|
||||
item.prepareNotificationStackForShowing();
|
||||
} else {
|
||||
[obj.sourceBox, obj.countLabel] = this._makeNotificationSource(item.source);
|
||||
@ -245,7 +245,7 @@ const NotificationsBox = new Lang.Class({
|
||||
obj.resident = true;
|
||||
|
||||
this._residentNotificationBox.add(obj.item.notificationStackWidget);
|
||||
obj.item.closeButtonVisible = false;
|
||||
obj.item.closeButton.hide();
|
||||
obj.item.prepareNotificationStackForShowing();
|
||||
} else {
|
||||
// just update the counter
|
||||
|
Reference in New Issue
Block a user