[evince] libdocument: Add ev_document_text_get_text_attrs()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libdocument: Add ev_document_text_get_text_attrs()
- Date: Wed, 10 Jul 2013 15:57:59 +0000 (UTC)
commit f72b619593c14e430e5539d4b46f0395c7142201
Author: Antia Puentes <apuentes igalia com>
Date: Wed Jul 10 17:43:40 2013 +0200
libdocument: Add ev_document_text_get_text_attrs()
libdocument/ev-document-text.c | 12 ++++++++++++
libdocument/ev-document-text.h | 5 ++++-
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-document-text.c b/libdocument/ev-document-text.c
index 56c1a56..85c5d63 100644
--- a/libdocument/ev-document-text.c
+++ b/libdocument/ev-document-text.c
@@ -68,3 +68,15 @@ ev_document_text_get_text_mapping (EvDocumentText *document_text,
return iface->get_text_mapping (document_text, page);
}
+
+PangoAttrList *
+ev_document_text_get_text_attrs (EvDocumentText *document_text,
+ EvPage *page)
+{
+ EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
+
+ if (!iface->get_text_attrs)
+ return NULL;
+
+ return iface->get_text_attrs (document_text, page);
+}
diff --git a/libdocument/ev-document-text.h b/libdocument/ev-document-text.h
index abf1cc7..2e6e10d 100644
--- a/libdocument/ev-document-text.h
+++ b/libdocument/ev-document-text.h
@@ -57,6 +57,8 @@ struct _EvDocumentTextInterface
EvPage *page,
EvRectangle **areas,
guint *n_areas);
+ PangoAttrList *(* get_text_attrs) (EvDocumentText *document_text,
+ EvPage *page);
};
GType ev_document_text_get_type (void) G_GNUC_CONST;
@@ -69,7 +71,8 @@ gboolean ev_document_text_get_text_layout (EvDocumentText *document_tex
guint *n_areas);
cairo_region_t *ev_document_text_get_text_mapping (EvDocumentText *document_text,
EvPage *page);
-
+PangoAttrList *ev_document_text_get_text_attrs (EvDocumentText *document_text,
+ EvPage *page);
G_END_DECLS
#endif /* EV_DOCUMENT_TEXT_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]