Remove commented out code.
[geeqie.git] / src / logwindow.c
index 5c652ed..cf6230f 100644 (file)
@@ -113,8 +113,8 @@ static void log_window_init(LogWindow *logwin)
        GtkTextBuffer *buffer;
 #if !GTK_CHECK_VERSION(3,0,0)
        GdkColormap *colormap;
-#endif
        gboolean success[LOG_COUNT];
+#endif
        gint i;
 
        g_assert(logwin != NULL);
@@ -270,7 +270,7 @@ void log_window_append(const gchar *str, LogType type)
 
        log_window_insert_text(buffer, &iter, str, logdefs[type].tag);
 
-       if (gtk_widget_get_visible(text))
+       if (gtk_widget_get_visible(GTK_WIDGET(text)))
                {
                GtkTextMark *mark;