aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-02-24 13:41:33 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-02-24 13:41:33 +0800
commit8aa156cae015b9b971255916681f6971c028b25e (patch)
treea3168f96eef85ace5dc0a7a47f70aedb6fd653e5 /widgets/misc
parent946343d4804ec5c09ff13c69ae161cd616f2f514 (diff)
downloadgsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar.gz
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar.bz2
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar.lz
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar.xz
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.tar.zst
gsoc2013-evolution-8aa156cae015b9b971255916681f6971c028b25e.zip
Fixes bug #322789
svn path=/trunk/; revision=31574
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-image-chooser.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 13936ecee5..4d1d6a5507 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-24 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fixes bug #322789
+
+ * e-image-chooser.c: (set_image_from_data): Added code to get the
+ pixbuf after closing the loaded.
+
2006-02-13 Andre Klapper <a9016009@gmx.de>
* e-charset-picker.c: adding thai support.
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c
index f20b0a646d..cc89ce48d3 100644
--- a/widgets/misc/e-image-chooser.c
+++ b/widgets/misc/e-image-chooser.c
@@ -233,11 +233,12 @@ set_image_from_data (EImageChooser *chooser,
GdkPixbuf *pixbuf;
gdk_pixbuf_loader_write (loader, data, length, NULL);
-
+ gdk_pixbuf_loader_close (loader, NULL);
+
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
if (pixbuf)
g_object_ref (pixbuf);
- gdk_pixbuf_loader_close (loader, NULL);
+
g_object_unref (loader);
if (pixbuf) {