diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-21 17:10:42 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-21 17:10:42 +0100 |
commit | 75173c8f5ebdac9a095a466af602d6b07324029f (patch) | |
tree | c62c097c1e2cb3e80319f6e8125ece792e75f1fe /libview/ev-annotation-window.c | |
parent | 5109344eba11c4da9d10970dabe8aa159c6596c3 (diff) | |
download | atril-75173c8f5ebdac9a095a466af602d6b07324029f.tar.bz2 atril-75173c8f5ebdac9a095a466af602d6b07324029f.tar.xz |
libview: Add GTK3 support
Diffstat (limited to 'libview/ev-annotation-window.c')
-rw-r--r-- | 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 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)); |