[evince] libdocument: adding annotation squiggly.



commit 81c268b867b6fa88ade88429babef3fb6224c0bc
Author: Philipp Reinkemeier <philipp reinkemeier offis de>
Date:   Mon Jun 8 17:54:36 2015 +0200

    libdocument: adding annotation squiggly.
    
    This adds the type to libdocument, as well as a method
    to create such annotations.

 libdocument/ev-annotation.c |   10 ++++++++++
 libdocument/ev-annotation.h |    4 +++-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index c8fbcfb..c6ed06c 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -1471,6 +1471,16 @@ ev_annotation_text_markup_underline_new (EvPage *page)
         return annot;
 }
 
+EvAnnotation *
+ev_annotation_text_markup_squiggly_new (EvPage *page)
+{
+        EvAnnotation *annot = EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP,
+                                                           "page", page,
+                                                           "type", EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY,
+                                                           NULL));
+        return annot;
+}
+
 EvAnnotationTextMarkupType
 ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot)
 {
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index 9c2a4c5..1fe98fe 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -112,7 +112,8 @@ typedef enum {
 typedef enum {
         EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT,
         EV_ANNOTATION_TEXT_MARKUP_STRIKE_OUT,
-        EV_ANNOTATION_TEXT_MARKUP_UNDERLINE
+        EV_ANNOTATION_TEXT_MARKUP_UNDERLINE,
+        EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY
 } EvAnnotationTextMarkupType;
 
 /* EvAnnotation */
@@ -191,6 +192,7 @@ GType                      ev_annotation_text_markup_get_type        (void) G_GN
 EvAnnotation              *ev_annotation_text_markup_highlight_new   (EvPage                    *page);
 EvAnnotation              *ev_annotation_text_markup_strike_out_new  (EvPage                    *page);
 EvAnnotation              *ev_annotation_text_markup_underline_new   (EvPage                    *page);
+EvAnnotation              *ev_annotation_text_markup_squiggly_new    (EvPage                    *page);
 EvAnnotationTextMarkupType ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup    *annot);
 gboolean                   ev_annotation_text_markup_set_markup_type (EvAnnotationTextMarkup    *annot,
                                                                       EvAnnotationTextMarkupType 
markup_type);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]