diff options
| author | Victor Kareh <[email protected]> | 2026-05-13 14:12:17 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-05-19 16:21:12 -0400 |
| commit | a75bd72bf00bebd34380be95a741d77e053ffd66 (patch) | |
| tree | 7d6772f2b2b6fc84b514cded9ccfd8ba61c657af /libdocument/ev-annotation.c | |
| parent | 662b18f3c1247314dbc1efabe6b41754d7f969f6 (diff) | |
| download | atril-a75bd72bf00bebd34380be95a741d77e053ffd66.tar.bz2 atril-a75bd72bf00bebd34380be95a741d77e053ffd66.tar.xz | |
libdocument: adding class EvAnnotationTextMarkup
Implementing the (trivial) class
EvAnnotationTextMarkup and fixing a typo.
Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/714c34dc
Diffstat (limited to 'libdocument/ev-annotation.c')
| -rw-r--r-- | libdocument/ev-annotation.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index 03fe925c..60e9acda 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -66,7 +66,16 @@ struct _EvAnnotationAttachmentClass { EvAnnotationClass parent_class; }; -static void ev_annotation_text_markup_iface_init (EvAnnotationMarkupInterface *iface); +struct _EvAnnotationTextMarkup { + EvAnnotation parent; +}; + +struct _EvAnnotationTextMarkupClass { + EvAnnotationClass parent_class; +}; + +static void ev_annotation_text_markup_iface_init (EvAnnotationMarkupInterface *iface); +static void ev_annotation_text_markup_markup_iface_init (EvAnnotationMarkupInterface *iface); static void ev_annotation_attachment_markup_iface_init (EvAnnotationMarkupInterface *iface); /* EvAnnotation */ @@ -113,6 +122,11 @@ G_DEFINE_TYPE_WITH_CODE (EvAnnotationAttachment, ev_annotation_attachment, EV_TY G_IMPLEMENT_INTERFACE (EV_TYPE_ANNOTATION_MARKUP, ev_annotation_attachment_markup_iface_init); }); +G_DEFINE_TYPE_WITH_CODE (EvAnnotationTextMarkup, ev_annotation_text_markup, EV_TYPE_ANNOTATION, + { + G_IMPLEMENT_INTERFACE (EV_TYPE_ANNOTATION_MARKUP, + ev_annotation_text_markup_markup_iface_init); + }); /* EvAnnotation */ static void @@ -1218,3 +1232,22 @@ ev_annotation_attachment_set_attachment (EvAnnotationAttachment *annot, return TRUE; } + +/* EvAnnotationTextMarkup */ +static void +ev_annotation_text_markup_init (EvAnnotationTextMarkup *annot) +{ +} + +static void +ev_annotation_text_markup_class_init (EvAnnotationTextMarkupClass *klass) +{ + GObjectClass *g_object_class = G_OBJECT_CLASS (klass); + + ev_annotation_markup_class_install_properties (g_object_class); +} + +static void +ev_annotation_text_markup_markup_iface_init (EvAnnotationMarkupInterface *iface) +{ +} |
