summaryrefslogtreecommitdiff
path: root/libview/ev-annotation-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-annotation-window.c')
-rw-r--r--libview/ev-annotation-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index a3a4522a..d788d936 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 (3, 0, 0)
/* 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));