[evince/wip/highlight: 2/16] libdocument: adding annotation highlight
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/highlight: 2/16] libdocument: adding annotation highlight
- Date: Thu, 25 Sep 2014 15:21:44 +0000 (UTC)
commit e9060dd5d13b78602a8d089095e7665af555a289
Author: Giselle Reis <gisellemnr src gnome org>
Date: Thu Aug 7 16:03:39 2014 +0200
libdocument: adding annotation highlight
Implementing the type and a method to create
highlight annotations.
libdocument/ev-annotation.c | 11 +++++++++++
libdocument/ev-annotation.h | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index 83861af..1a4ce9b 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -1265,3 +1265,14 @@ ev_annotation_text_markup_markup_iface_init (EvAnnotationMarkupInterface *iface)
{
}
+EvAnnotation *
+ev_annotation_text_markup_highlight_new (EvPage *page)
+{
+ EvAnnotation *annot = EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP,
+ "page", page,
+ NULL));
+ annot->type = EV_ANNOTATION_TYPE_HIGHLIGHT;
+
+ return annot;
+}
+
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index de27e64..dc1023e 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -92,7 +92,8 @@ typedef struct _EvAnnotationTextMarkupClass EvAnnotationTextMarkupClass;
typedef enum {
EV_ANNOTATION_TYPE_UNKNOWN,
EV_ANNOTATION_TYPE_TEXT,
- EV_ANNOTATION_TYPE_ATTACHMENT
+ EV_ANNOTATION_TYPE_ATTACHMENT,
+ EV_ANNOTATION_TYPE_HIGHLIGHT
} EvAnnotationType;
typedef enum {
@@ -175,7 +176,8 @@ gboolean ev_annotation_attachment_set_attachment (EvAnnotationAttach
EvAttachment *attachment);
/* EvAnnotationTextMarkup */
-GType ev_annotation_text_markup_get_type (void) G_GNUC_CONST;
+GType ev_annotation_text_markup_get_type (void) G_GNUC_CONST;
+EvAnnotation *ev_annotation_text_markup_highlight_new (EvPage *page);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]