diff options
| author | Victor Kareh <[email protected]> | 2026-05-13 14:50:16 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-05-19 16:21:12 -0400 |
| commit | e25add583912902b179a16431c8feeeb1e09babc (patch) | |
| tree | 8c78ebaddc3aff36917a24f2e6a18b5382f17262 /libdocument/ev-annotation.c | |
| parent | 4bd2f90bbede5fddfeb9964896dcd389db28cef3 (diff) | |
| download | atril-e25add583912902b179a16431c8feeeb1e09babc.tar.bz2 atril-e25add583912902b179a16431c8feeeb1e09babc.tar.xz | |
Add support for reading strike out text markup annotations
Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/9b71d67e
Diffstat (limited to 'libdocument/ev-annotation.c')
| -rw-r--r-- | libdocument/ev-annotation.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index d0e03ebb..1cb13010 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -1324,3 +1324,20 @@ ev_annotation_text_markup_highlight_new (EvPage *page) "type", EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT, NULL)); } + +EvAnnotation * +ev_annotation_text_markup_strike_out_new (EvPage *page) +{ + return EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP, + "page", page, + "type", EV_ANNOTATION_TEXT_MARKUP_STRIKE_OUT, + NULL)); +} + +EvAnnotationTextMarkupType +ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot) +{ + g_return_val_if_fail (EV_IS_ANNOTATION_TEXT_MARKUP (annot), 0); + + return annot->type; +} |
