Mercurial > geeqie
diff src/ui_tabcomp.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | 9962b24b6b43 |
children | 1646720364cf |
line wrap: on
line diff
--- a/src/ui_tabcomp.c Sun Sep 07 19:42:19 2008 +0000 +++ b/src/ui_tabcomp.c Sun Sep 07 23:01:30 2008 +0000 @@ -205,8 +205,11 @@ /*close the menu */ gtk_menu_popdown(GTK_MENU(widget)); /* doing this does not emit the "selection done" signal, unref it ourselves */ +#if GTK_CHECK_VERSION(2,12,0) + g_object_unref(widget); +#else gtk_widget_unref(widget); - +#endif return TRUE; } @@ -634,7 +637,8 @@ pixbuf = gdk_pixbuf_new_from_inline(-1, icon_tabcomp, FALSE, NULL); icon = gtk_image_new_from_pixbuf(pixbuf); - gdk_pixbuf_unref(pixbuf); + g_object_unref(pixbuf); + gtk_container_add(GTK_CONTAINER(button), icon); gtk_widget_show(icon);