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 613833 - Unnecessary queue_resize() for GtkImage
Unnecessary queue_resize() for GtkImage
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-03-24 18:49 UTC by Owen Taylor
Modified: 2015-01-31 04:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2010-03-24 18:49:33 UTC
When you set a pixbuf of the same size on a GtkImage, we queue a resize, not just a repaint. This causes the expense to increase considerably - e.g., we may have a round trip through the window manager or, for GtkStatusIcon, through the status tray.

So, it would be good to optimize this out where possible. This is going to require some increased complexity - e..g, we can't just call gtk_image_clear() since that updates the requsition to 0x0 and queues a redraw.