summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-27 17:39:45 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:53 +0200
commitbd5fe64bb5ec8a9cdca866d7bc78baf8f725a9f9 (patch)
treeab4c27cf6cb33c34d33068266a98ad2b2885cc9b
parent01a922551d410ecb11e4eb1477cfe3f33bff3491 (diff)
downloadcaja-bd5fe64bb5ec8a9cdca866d7bc78baf8f725a9f9.tar.bz2
caja-bd5fe64bb5ec8a9cdca866d7bc78baf8f725a9f9.tar.xz
[image-properties-page] call gdk_pixbuf_loader_close() earlier
This helps smaller images (>8192 bytes) to signal size_prepared before reading image geometry. (#558267) http://git.gnome.org/browse/nautilus/commit/?id=d3ab8e137ae957e5afef54bf0ec1e275b96caab5
-rw-r--r--src/caja-image-properties-page.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caja-image-properties-page.c b/src/caja-image-properties-page.c
index 67428fde..1e5b53e2 100644
--- a/src/caja-image-properties-page.c
+++ b/src/caja-image-properties-page.c
@@ -391,6 +391,10 @@ load_finished (CajaImagePropertiesPage *page)
gtk_widget_destroy (page->details->loading_label);
+ if (page->details->loader != NULL) {
+ gdk_pixbuf_loader_close (page->details->loader, NULL);
+ }
+
if (page->details->got_size)
{
#ifdef HAVE_EXIF
@@ -437,7 +441,6 @@ load_finished (CajaImagePropertiesPage *page)
if (page->details->loader != NULL)
{
- gdk_pixbuf_loader_close (page->details->loader, NULL);
g_object_unref (page->details->loader);
page->details->loader = NULL;
}