After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 411210 - tray icon doesn't scale up on larger panels
tray icon doesn't scale up on larger panels
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkStatusIcon
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2007-02-23 14:09 UTC by William Jon McCann
Modified: 2011-03-20 04:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2007-02-23 14:09:44 UTC
Increase the size of the panel to say 48px.  You'll see that the icon doesn't scale up.
Comment 1 Richard Hughes 2007-02-27 20:04:24 UTC
I think this is a generic gtk+ bug, as all gnome-power-manager does is gtk_status_icon_set_from_icon_name() and lets the gtkstatusicon code do the size calculation.
Comment 2 Brian Tarricone 2007-05-29 17:54:51 UTC
Looks like I'm hitting this problem as well.  See:
http://foo-projects.org/pipermail/xfce/2007-May/021396.html

It's even worse in the other direction: if the panel is too small, the icon gets cut off.
Comment 3 Brian Tarricone 2007-05-29 21:24:29 UTC
A little odd... I'm looking at gtk_status_icon_size_allocate() (in gtk 2.10.12), and I feel like it should be doing the right thing here.  It looks at the allocation it receives, sets the image width and height appropriately, and then, if the size has changed, it runs gtk_status_icon_update_image(), which should redo the sizing.

And indeed, trying it myself (gtk 2.10.11 on Ubuntu), it seems to work.  If I size the panel down to 16 pixels tall, the icon resizes and fits fine.  If I start increasing the panel size, the icon gets larger, though it seems to go through a couple discrete steps, and at some point stops increasing.  I wonder if that's just Xfce's systray implementation, though -- it might not increase the size allocated to items past a certain point.  While the systray itself gets taller as I increase panel height, it only increases in width up to a certain point (maybe around 32px), and then stops.

So, maybe this bug has already been fixed in gtk?  Maybe some tray implementations aren't behaving as expected?