]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Don't use GdkColormap on gtk 3
authorChristian Persch <chpe@gnome.org>
Sat, 11 Sep 2010 21:49:24 +0000 (23:49 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 26 Sep 2010 14:44:39 +0000 (16:44 +0200)
libview/ev-view-presentation.c

index 5caf78f1c6599f9f84e325588d88570a4600af23..66d3589c30b2144158e0e6e828e4d41ae5e34ec3 100644 (file)
@@ -1222,7 +1222,9 @@ ev_view_presentation_realize (GtkWidget *widget)
        attributes.window_type = GDK_WINDOW_CHILD;
        attributes.wclass = GDK_INPUT_OUTPUT;
        attributes.visual = gtk_widget_get_visual (widget);
+#if !GTK_CHECK_VERSION (2, 90, 8)
        attributes.colormap = gtk_widget_get_colormap (widget);
+#endif
 
        gtk_widget_get_allocation (widget, &allocation);
        attributes.x = allocation.x;
@@ -1242,7 +1244,9 @@ ev_view_presentation_realize (GtkWidget *widget)
        window = gdk_window_new (gtk_widget_get_parent_window (widget),
                                 &attributes,
                                 GDK_WA_X | GDK_WA_Y |
+#if !GTK_CHECK_VERSION (2, 90, 8)
                                 GDK_WA_COLORMAP |
+#endif
                                 GDK_WA_VISUAL);
 
        gdk_window_set_user_data (window, widget);