diff options
Diffstat (limited to 'libdocument')
| -rw-r--r-- | libdocument/ev-annotation.c | 11 | ||||
| -rw-r--r-- | libdocument/ev-annotation.h | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index 60e9acda..55237cb9 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -1251,3 +1251,14 @@ static void 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 85783295..d2010103 100644 --- a/libdocument/ev-annotation.h +++ b/libdocument/ev-annotation.h @@ -93,7 +93,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 { @@ -177,6 +178,7 @@ gboolean ev_annotation_attachment_set_attachment (EvAnnotationAttach /* EvAnnotationTextMarkup */ GType ev_annotation_text_markup_get_type (void) G_GNUC_CONST; +EvAnnotation *ev_annotation_text_markup_highlight_new (EvPage *page); G_END_DECLS |
