Mercurial > geeqie
diff src/image-load.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | ab24c46aa6e4 |
children | 0ab0deb0cfcc |
line wrap: on
line diff
--- a/src/image-load.c Sun Sep 07 19:42:19 2008 +0000 +++ b/src/image-load.c Sun Sep 07 23:01:30 2008 +0000 @@ -172,7 +172,8 @@ il->area_param_list = g_list_delete_link(il->area_param_list, il->area_param_list); } - if (il->pixbuf) gdk_pixbuf_unref(il->pixbuf); + if (il->pixbuf) g_object_unref(il->pixbuf); + file_data_unref(il->fd); #ifdef HAVE_GTHREAD g_mutex_free(il->data_mutex); @@ -317,9 +318,11 @@ return; } - if (il->pixbuf) gdk_pixbuf_unref(il->pixbuf); + if (il->pixbuf) g_object_unref(il->pixbuf); + il->pixbuf = pb; - if (il->pixbuf) gdk_pixbuf_ref(il->pixbuf); + if (il->pixbuf) g_object_ref(il->pixbuf); + g_mutex_unlock(il->data_mutex); }