Mercurial > geeqie.yaz
comparison src/thumb.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | ab24c46aa6e4 |
children | 1646720364cf |
comparison
equal
deleted
inserted
replaced
1042:e59a9c96d290 | 1043:5fc64d6252e7 |
---|---|
212 { | 212 { |
213 if (tl->fd) | 213 if (tl->fd) |
214 { | 214 { |
215 if (tl->fd->thumb_pixbuf) g_object_unref(tl->fd->thumb_pixbuf); | 215 if (tl->fd->thumb_pixbuf) g_object_unref(tl->fd->thumb_pixbuf); |
216 tl->fd->thumb_pixbuf = pixbuf; | 216 tl->fd->thumb_pixbuf = pixbuf; |
217 gdk_pixbuf_ref(tl->fd->thumb_pixbuf); | 217 |
218 g_object_ref(tl->fd->thumb_pixbuf); | |
218 } | 219 } |
219 save = image_loader_get_shrunk(il); | 220 save = image_loader_get_shrunk(il); |
220 } | 221 } |
221 | 222 |
222 if (rotated) gdk_pixbuf_unref(rotated); | 223 if (rotated) g_object_unref(rotated); |
223 | 224 |
224 /* save it ? */ | 225 /* save it ? */ |
225 if (tl->cache_enable && save) | 226 if (tl->cache_enable && save) |
226 { | 227 { |
227 thumb_loader_save_thumbnail(tl, FALSE); | 228 thumb_loader_save_thumbnail(tl, FALSE); |
649 /* scale */ | 650 /* scale */ |
650 GdkPixbuf *tmp; | 651 GdkPixbuf *tmp; |
651 | 652 |
652 tmp = pixbuf; | 653 tmp = pixbuf; |
653 pixbuf = gdk_pixbuf_scale_simple(tmp, width, height, GDK_INTERP_NEAREST); | 654 pixbuf = gdk_pixbuf_scale_simple(tmp, width, height, GDK_INTERP_NEAREST); |
654 gdk_pixbuf_unref(tmp); | 655 g_object_unref(tmp); |
655 } | 656 } |
656 | 657 |
657 return pixbuf; | 658 return pixbuf; |
658 } | 659 } |
659 | 660 |