From: Christian Persch Date: Sat, 11 Sep 2010 21:49:24 +0000 (+0200) Subject: [libview] Don't use GdkColormap on gtk 3 X-Git-Tag: EVINCE_2_91_0~18 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0e8323d1dc071decce230e980e57d68e260d574d;p=evince.git [libview] Don't use GdkColormap on gtk 3 --- diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index 5caf78f1..66d3589c 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -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);