[nautilus] image-properties-page: call gdk_pixbuf_loader_close() earlier (#558267)
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] image-properties-page: call gdk_pixbuf_loader_close() earlier (#558267)
- Date: Thu, 14 Oct 2010 13:57:27 +0000 (UTC)
commit d3ab8e137ae957e5afef54bf0ec1e275b96caab5
Author: Marcus Carlson <mdc src gnome org>
Date: Fri Jul 23 22:40:54 2010 +0200
image-properties-page: call gdk_pixbuf_loader_close() earlier (#558267)
This helps smaller images (>8192 bytes) to signal size_prepared before
reading image geometry.
src/nautilus-image-properties-page.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-image-properties-page.c b/src/nautilus-image-properties-page.c
index 8c0b8fc..69750a9 100644
--- a/src/nautilus-image-properties-page.c
+++ b/src/nautilus-image-properties-page.c
@@ -367,6 +367,10 @@ load_finished (NautilusImagePropertiesPage *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
ExifData *exif_data;
@@ -409,7 +413,6 @@ load_finished (NautilusImagePropertiesPage *page)
}
if (page->details->loader != NULL) {
- gdk_pixbuf_loader_close (page->details->loader, NULL);
g_object_unref (page->details->loader);
page->details->loader = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]