diff options
| author | Victor Kareh <[email protected]> | 2026-05-13 15:25:30 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-05-19 16:21:12 -0400 |
| commit | 64fa2a3d017c7f6dd41b126b5b121940ffbe7b7b (patch) | |
| tree | c8d7d30432630398c45434c026c643bfb280acab /libdocument/ev-annotation.c | |
| parent | 7fd4984cce7e900224cc49b94c7d277341bf4289 (diff) | |
| download | atril-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
Diffstat (limited to 'libdocument/ev-annotation.c')
| -rw-r--r-- | libdocument/ev-annotation.c | 9 |
1 files changed, 9 insertions, 0 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) { |
