From ac5503c7bb7afe9565eb700454ab4ab0b2671322 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 29 Jul 2019 15:54:38 +0200 Subject: document: Replace deprecated gdk_color_equal gdk_color_equal is simple enough to replace it with code inline taken from: https://gitlab.gnome.org/GNOME/evince/commit/1944b86 --- libdocument/ev-annotation.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdocument') 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.; -- cgit v1.2.1