From 49cfd993c1c3e2ba7f69268649e093c685949350 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Mon, 9 Feb 2009 13:52:54 +0000 Subject: [PATCH] Replace gdk_pixbuf_unref with g_object_unref svn path=/trunk/; revision=9253 --- ChangeLog | 6 ++++++ capplets/common/gconf-property-editor.c | 2 +- font-viewer/font-thumbnailer.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6051c3b3..2283d5d0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-02-09 Thomas H.P. Andersen + + * font-viewer/font-thumbnailer.c: + * capplets/common/gconf-property-editor.c: Don't use deprecated + gdk_pixbuf_unref. Bug #570945 + 2009-02-04 Vincent Untz * configure.in: post-release bump to 2.25.91 diff --git a/capplets/common/gconf-property-editor.c b/capplets/common/gconf-property-editor.c index 116591b36..518fd9fe2 100644 --- a/capplets/common/gconf-property-editor.c +++ b/capplets/common/gconf-property-editor.c @@ -1518,7 +1518,7 @@ peditor_image_chooser_update_preview_cb (GtkFileChooser *chooser, g_free (filename); if (pixbuf != NULL) - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); } static void diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index b69795d59..61fa0ae0a 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/font-thumbnailer.c @@ -214,7 +214,7 @@ save_pixbuf(GdkPixbuf *pixbuf, gchar *filename) trim_right - trim_left, trim_bottom - trim_top); gdk_pixbuf_save(subpixbuf, filename, "png", NULL, NULL); - gdk_pixbuf_unref(subpixbuf); + g_object_unref(subpixbuf); } int