From: Christian Persch Date: Sat, 11 Sep 2010 21:37:54 +0000 (+0200) Subject: [libview] Don't allocate colours X-Git-Tag: EVINCE_2_91_0~21 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=91d99d436da636ca1b6a3daea91cc58ce4f668be;p=evince.git [libview] Don't allocate colours GdkColormap is being removed from gtk. --- 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));