gtk_widget_get_visible() is only available in GTK+ 2.18 and later.

svn path=/trunk/; revision=38194
This commit is contained in:
Guy Harris 2011-07-25 01:33:15 +00:00
parent 43225ffd5e
commit 1dac375416
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}