From 8aa156cae015b9b971255916681f6971c028b25e Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 24 Feb 2006 05:41:33 +0000 Subject: Fixes bug #322789 svn path=/trunk/; revision=31574 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-image-chooser.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'widgets') 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 + + ** 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 * 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) { -- cgit