Mercurial > geeqie.yaz
diff src/layout_image.c @ 1043:5fc64d6252e7
Replaced gtk depreceated code.
author | bruclik |
---|---|
date | Sun, 07 Sep 2008 23:01:30 +0000 |
parents | 86148ec8a299 |
children | 81ec7d977d5f |
line wrap: on
line diff
--- a/src/layout_image.c Sun Sep 07 19:42:19 2008 +0000 +++ b/src/layout_image.c Sun Sep 07 23:01:30 2008 +0000 @@ -1507,8 +1507,11 @@ { lw->split_images[i] = image_new(TRUE); +#if GTK_CHECK_VERSION(2,12,0) + g_object_ref(lw->split_images[i]->widget); +#else gtk_widget_ref(lw->split_images[i]->widget); - +#endif image_background_set_color(lw->split_images[i], options->image.use_custom_border_color ? &options->image.border_color : NULL); image_auto_refresh_enable(lw->split_images[i], TRUE); @@ -1599,7 +1602,11 @@ { if (lw->split_images[i]) { +#if GTK_CHECK_VERSION(2,12,0) + g_object_unref(lw->split_images[i]->widget); +#else gtk_widget_unref(lw->split_images[i]->widget); +#endif lw->split_images[i] = NULL; } } @@ -1653,7 +1660,11 @@ { if (lw->split_images[i]) { +#if GTK_CHECK_VERSION(2,12,0) + g_object_unref(lw->split_images[i]->widget); +#else gtk_widget_unref(lw->split_images[i]->widget); +#endif lw->split_images[i] = NULL; } } @@ -1729,7 +1740,11 @@ { if (lw->split_images[i]) { +#if GTK_CHECK_VERSION(2,12,0) + g_object_unref(lw->split_images[i]->widget); +#else gtk_widget_unref(lw->split_images[i]->widget); +#endif lw->split_images[i] = NULL; } }