]> git.street.me.uk Git - andy/viking.git/commitdiff
Update ‘gdk_pixbuf_ref’ deprecated functions to the g_object_ref equivalents
authorRob Norris <rw_norris@hotmail.com>
Mon, 27 Aug 2012 21:40:54 +0000 (22:40 +0100)
committerRob Norris <rw_norris@hotmail.com>
Thu, 20 Sep 2012 00:47:20 +0000 (01:47 +0100)
src/thumbnails.c
test/Stonehenge.jpg

index 8b48dce6a21cfcf8d9aee19154b623f0d5b26eed..c6d3a0c42b5fd821d85fcfc2633cfd0a1fbab6ff 100644 (file)
@@ -122,7 +122,7 @@ GdkPixbuf *a_thumbnails_scale_pixbuf(GdkPixbuf *src, int max_w, int max_h)
 
        if (w <= max_w && h <= max_h)
        {
-               gdk_pixbuf_ref(src);
+               g_object_ref ( G_OBJECT ( src ) );
                return src;
        }
        else
@@ -155,7 +155,7 @@ static GdkPixbuf *child_create_thumbnail(const gchar *path)
        if (image)
         {
                GdkPixbuf *thumb = save_thumbnail(path, image);
-               gdk_pixbuf_unref ( image );
+               g_object_unref ( G_OBJECT ( image ) );
                return thumb;
        }
 
@@ -289,7 +289,7 @@ GdkPixbuf *a_thumbnails_get(const gchar *pathname)
        goto out;
 err:
        if (thumb)
-               gdk_pixbuf_unref(thumb);
+               g_object_unref ( G_OBJECT ( thumb ) );
        thumb = NULL;
 out:
        g_free(path);
index 3a0fc931fd79faaf79cc0bae71b5025b527f2742..6e5461836b26085212a1f34421e79fd648aca0be 100644 (file)
Binary files a/test/Stonehenge.jpg and b/test/Stonehenge.jpg differ