Mercurial > geeqie
diff src/thumb.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | ab24c46aa6e4 |
children | 1646720364cf |
line wrap: on
line diff
--- a/src/thumb.c Sun Sep 07 19:42:19 2008 +0000 +++ b/src/thumb.c Sun Sep 07 23:01:30 2008 +0000 @@ -214,12 +214,13 @@ { if (tl->fd->thumb_pixbuf) g_object_unref(tl->fd->thumb_pixbuf); tl->fd->thumb_pixbuf = pixbuf; - gdk_pixbuf_ref(tl->fd->thumb_pixbuf); + + g_object_ref(tl->fd->thumb_pixbuf); } save = image_loader_get_shrunk(il); } - if (rotated) gdk_pixbuf_unref(rotated); + if (rotated) g_object_unref(rotated); /* save it ? */ if (tl->cache_enable && save) @@ -651,7 +652,7 @@ tmp = pixbuf; pixbuf = gdk_pixbuf_scale_simple(tmp, width, height, GDK_INTERP_NEAREST); - gdk_pixbuf_unref(tmp); + g_object_unref(tmp); } return pixbuf;