Mercurial > geeqie.yaz
diff src/layout.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | 1a4b18c58556 |
children | 0ab0deb0cfcc |
line wrap: on
line diff
--- a/src/layout.c Sun Sep 07 19:42:19 2008 +0000 +++ b/src/layout.c Sun Sep 07 23:01:30 2008 +0000 @@ -253,7 +253,11 @@ static void layout_sort_menu_hide_cb(GtkWidget *widget, gpointer data) { /* destroy the menu */ +#if GTK_CHECK_VERSION(2,12,0) + g_object_unref(widget); +#else gtk_widget_unref(GTK_WIDGET(widget)); +#endif } static void layout_sort_button_press_cb(GtkWidget *widget, gpointer data) @@ -1985,7 +1989,7 @@ pixbuf = pixbuf_inline(PIXBUF_INLINE_LOGO); image_change_pixbuf(lw->image, pixbuf, 1.0); - gdk_pixbuf_unref(pixbuf); + g_object_unref(pixbuf); } if (geometry)