From 91d99d436da636ca1b6a3daea91cc58ce4f668be Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 11 Sep 2010 23:37:54 +0200 Subject: [PATCH] [libview] Don't allocate colours GdkColormap is being removed from gtk. --- libview/ev-annotation-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index cbed0f74..6199660c 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)); -- 2.43.0