From 96f89ce4ae0cfbdeb2f4d1e6b2c3de700aeae6db Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 19 Mar 2011 13:51:34 -0400 Subject: [PATCH] message-tray: allocate the entire size to the icon Specify x-fill and y-fill true for the bin that contains the status icon so the status icon will always be sized to our specified icon size (24x24). This prevents pathological behavior for legacy status icons embedded in the tray where an initial allocation at 1x1 before they had content would "stick", and the icon would permanently end up 1x1. https://bugzilla.gnome.org/show_bug.cgi?id=634820 --- js/ui/messageTray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index d2c09f499..ae1060aa6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -820,7 +820,9 @@ Source.prototype = { _init: function(title) { this.title = title; this._iconBin = new St.Bin({ width: this.ICON_SIZE, - height: this.ICON_SIZE }); + height: this.ICON_SIZE, + x_fill: true, + y_fill: true }); this.isTransient = false; this.isChat = false; },