summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2019-08-02 03:52:38 +0000
committerGitHub <[email protected]>2019-08-02 03:52:38 +0000
commit854048d845c04287deb624e23bc4305558a65add (patch)
tree205b51c00b66c0a0297119eae999128747990c9e
parent0dc96a12694b252c128b7c85e4105ba12d8b082e (diff)
parentac5503c7bb7afe9565eb700454ab4ab0b2671322 (diff)
downloadatril-854048d845c04287deb624e23bc4305558a65add.tar.bz2
atril-854048d845c04287deb624e23bc4305558a65add.tar.xz
Merge pull request #391 from mate-desktop/annotation-deprecate
document: Replace deprecated gdk_color_equal
-rw-r--r--libdocument/ev-annotation.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index 9e918b2a..200933f9 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -565,8 +565,11 @@ ev_annotation_set_color (EvAnnotation *annot,
g_return_val_if_fail (EV_IS_ANNOTATION (annot), FALSE);
ev_annotation_get_color (annot, &annot_color);
- if (color == NULL || gdk_color_equal (color, &annot_color))
- return FALSE;
+ if (color == NULL ||
+ ((color->red == annot_color.red) &&
+ (color->green == annot_color.green) &&
+ (color->blue == annot_color.blue)))
+ return FALSE;
rgba.red = color->red / 65535.;
rgba.green = color->green / 65535.;