[gnome-shell] message-tray: allocate the entire size to the icon
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] message-tray: allocate the entire size to the icon
- Date: Mon, 21 Mar 2011 15:17:52 +0000 (UTC)
commit 96f89ce4ae0cfbdeb2f4d1e6b2c3de700aeae6db
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sat Mar 19 13:51:34 2011 -0400
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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index d2c09f4..ae1060a 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;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]