summaryrefslogtreecommitdiff
path: root/libdocument/ev-annotation.h
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-13 01:08:48 +0200
committerraveit65 <[email protected]>2017-08-14 20:02:44 +0200
commit0b8edc9752cc3eef784366e95f038aa442575c71 (patch)
treeb504d260dfc0c95d6a46f2757b647c6828e77434 /libdocument/ev-annotation.h
parenta2e5e6d2dd44f9d2de05d5563df20989360dbdf7 (diff)
downloadatril-0b8edc9752cc3eef784366e95f038aa442575c71.tar.bz2
atril-0b8edc9752cc3eef784366e95f038aa442575c71.tar.xz
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
Diffstat (limited to 'libdocument/ev-annotation.h')
-rw-r--r--libdocument/ev-annotation.h7
1 files changed, 7 insertions, 0 deletions
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;