Details
[Home]
Issue of the Implementation # S0657
Brief
gdk_pixbuf_loader_get_pixbuf returns different results if gdk_pixbuf_loader_set_size has been called
Detailed Description
The description of gdk_pixbuf_loader_get_pixbuf states:
Queries the GdkPixbuf that a pixbuf loader is currently creating. In general it only makes sense to call this function after the "area_prepared" signal has been emitted by the loader; this means that enough data has been read to know the size of the image that will be allocated. If the loader has not received enough data via gdk_pixbuf_loader_write(), then this function returns NULL. The returned pixbuf will be the same in all future calls to the loader, so simply calling g_object_ref() should be sufficient to continue using it.
But values, returned by gdk_pixbuf_loader_get_pixbuf before and after call of gdk_pixbuf_loader_close, may differ. This difference contradict to statement in bold.
This occures when gdk_pixbuf_loader_set_size has been called with sizes that different from sizes of image loaded.
An example demonstrating this problem can be found here.
Problem location(s) in the standard
Gdk-pixbuf 2.6.2 API Reference, GdkPixbufLoader
Component
gtk-gdk-pixbuf 2.6.2 or later
Accepted
Gnome Bugzilla 583547
[Home]