aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-07-25 01:33:15 +0000
committerGuy Harris <guy@alum.mit.edu>2011-07-25 01:33:15 +0000
commit1dac37541652975a3be44601e939bd580c424692 (patch)
tree63b27f3fc0d6467a55cedaf36add40ae59da4448 /gtk/main.c
parent43225ffd5e48f21fbc4b6f20ee901dde9ea0511f (diff)
gtk_widget_get_visible() is only available in GTK+ 2.18 and later.
svn path=/trunk/; revision=38194
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 3934745866..c34240c6fc 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -3439,7 +3439,11 @@ is_widget_visible(GtkWidget *widget, gpointer data)
gboolean *is_visible = data;
if (!*is_visible) {
+#if GTK_CHECK_VERSION(2,18,0)
if (gtk_widget_get_visible(widget))
+#else
+ if (GTK_WIDGET_VISIBLE(widget)) {
+#endif
*is_visible = TRUE;
}
}