summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-05-13 15:25:30 -0400
committerVictor Kareh <[email protected]>2026-05-19 16:21:12 -0400
commit64fa2a3d017c7f6dd41b126b5b121940ffbe7b7b (patch)
treec8d7d30432630398c45434c026c643bfb280acab
parent7fd4984cce7e900224cc49b94c7d277341bf4289 (diff)
downloadatril-64fa2a3d017c7f6dd41b126b5b121940ffbe7b7b.tar.bz2
atril-64fa2a3d017c7f6dd41b126b5b121940ffbe7b7b.tar.xz
libdocument: adding annotation squiggly.
This adds the type to libdocument, as well as a method to create such annotations. Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/81c268b8
-rw-r--r--libdocument/ev-annotation.c9
-rw-r--r--libdocument/ev-annotation.h4
2 files changed, 12 insertions, 1 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index 93e2194a..7b4b575d 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -1343,6 +1343,15 @@ ev_annotation_text_markup_underline_new (EvPage *page)
NULL));
}
+EvAnnotation *
+ev_annotation_text_markup_squiggly_new (EvPage *page)
+{
+ return EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP,
+ "page", page,
+ "type", EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY,
+ NULL));
+}
+
EvAnnotationTextMarkupType
ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot)
{
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index 025c6ab1..032cfcf0 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -113,7 +113,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 */
@@ -187,6 +188,7 @@ GType ev_annotation_text_markup_get_type (void)
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);
G_END_DECLS