[evince] [libview] Don't use GdkColormap on gtk 3



commit 0e8323d1dc071decce230e980e57d68e260d574d
Author: Christian Persch <chpe gnome org>
Date:   Sat Sep 11 23:49:24 2010 +0200

    [libview] Don't use GdkColormap on gtk 3

 libview/ev-view-presentation.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 5caf78f..66d3589 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]