From 0b8edc9752cc3eef784366e95f038aa442575c71 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 13 Jun 2012 01:08:48 +0200 Subject: libdocument: Add EvAnnotation API using GdkRGBA Add new API to EvAnnotation that uses GdkRGBA, and deprecated the GdkColor using one. Part of https://bugzilla.gnome.org/show_bug.cgi?id=677983 taken from: https://git.gnome.org/browse/evince/commit/?id=c477923 https://git.gnome.org/browse/evince/commit/?id=87ca31d --- libdocument/ev-annotation.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libdocument/ev-annotation.h') diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h index 395270e1..408c4577 100644 --- a/libdocument/ev-annotation.h +++ b/libdocument/ev-annotation.h @@ -31,6 +31,7 @@ #include "ev-document.h" #include "ev-attachment.h" +#include "ev-macros.h" G_BEGIN_DECLS @@ -115,10 +116,16 @@ gboolean ev_annotation_set_modified (EvAnnotation const gchar *modified); gboolean ev_annotation_set_modified_from_time (EvAnnotation *annot, GTime utime); +EV_DEPRECATED_FOR(ev_annotaion_get_rgba) void ev_annotation_get_color (EvAnnotation *annot, GdkColor *color); +EV_DEPRECATED_FOR(ev_annotaion_set_rgba) gboolean ev_annotation_set_color (EvAnnotation *annot, const GdkColor *color); +void ev_annotation_get_rgba (EvAnnotation *annot, + GdkRGBA *rgba); +gboolean ev_annotation_set_rgba (EvAnnotation *annot, + const GdkRGBA *rgba); /* EvAnnotationMarkup */ GType ev_annotation_markup_get_type (void) G_GNUC_CONST; -- cgit v1.2.1