remove all gtk3 conditionals
[claws.git] / src / mainwindow.c
index 30376f0b6c17d2819f0b153bfd230fe9878c1671..5fa621d1502c875550c96cc0d082448168a9e3e8 100644 (file)
@@ -1432,10 +1432,8 @@ MainWindow *main_window_create()
        FolderView *folderview;
        SummaryView *summaryview;
        MessageView *messageview;
-#if !GTK_CHECK_VERSION(3, 0, 0)
        GdkColormap *colormap;
        gboolean success[4];
-#endif
        GdkColor color[4];
        GtkWidget *ac_menu;
        gint i;
@@ -2093,14 +2091,12 @@ MainWindow *main_window_create()
        color[2] = folderview->color_new;
        color[3] = folderview->color_op;
 
-#if !GTK_CHECK_VERSION(3, 0, 0)
        colormap = gdk_drawable_get_colormap(gtk_widget_get_window(window));
        gdk_colormap_alloc_colors(colormap, color, 4, FALSE, TRUE, success);
        for (i = 0; i < 4; i++) {
                if (success[i] == FALSE)
                        g_warning("MainWindow: color allocation %d failed", i);
        }
-#endif
 
        debug_print("done.\n");