[evince/rendering-cleanup: 2/8] [libview] Don't allocate colours



commit 7e191959492e8588dc69e23bc978e7484f91d126
Author: Christian Persch <chpe gnome org>
Date:   Sat Sep 11 23:37:54 2010 +0200

    [libview] Don't allocate colours
    
    GdkColormap is being removed from gtk.

 libview/ev-annotation-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index cbed0f7..6199660 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -139,9 +139,11 @@ ev_annotation_window_set_color (EvAnnotationWindow *window,
 
 	gcolor = *color;
 
+#if !GTK_CHECK_VERSION (2, 90, 8)
 	/* Allocate these colors */
 	gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (window)),
 				  &gcolor, FALSE, TRUE);
+#endif
 
 	/* Apply colors to style */
 	rc_style = gtk_widget_get_modifier_style (GTK_WIDGET (window));



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