GTK marks several functions as deprecated
[geeqie.git] / src / logwindow.c
index 52fd952..0b61f5e 100644 (file)
@@ -268,7 +268,11 @@ void log_window_append(const gchar *str, LogType type)
 
        log_window_insert_text(buffer, &iter, str, logdefs[type].tag);
 
+#if GTK_CHECK_VERSION(2,20,0)
+       if (gtk_widget_get_visible(text))
+#else
        if (GTK_WIDGET_VISIBLE(text))
+#endif
                {
                GtkTextMark *mark;