]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Don't allocate colours
authorChristian Persch <chpe@gnome.org>
Sat, 11 Sep 2010 21:37:54 +0000 (23:37 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 26 Sep 2010 14:44:38 +0000 (16:44 +0200)
GdkColormap is being removed from gtk.

libview/ev-annotation-window.c

index cbed0f74cc4e455678536b16b396551ac33e93e7..6199660cc4416f6fb7aef03ad311d0aa25136ea3 100644 (file)
@@ -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));