diff options
author | Antia Puentes <[email protected]> | 2013-07-10 17:43:40 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-06 18:25:34 +0200 |
commit | 2a7eb0b7ae2af2fa56e92e6c4a3b241833c3ea96 (patch) | |
tree | 5c13bf36470e9bf5fec84f6020399398380e159a /libdocument/ev-document-text.c | |
parent | a6d277859cfea9450ab8b41ffeceb49752fdabc0 (diff) | |
download | atril-2a7eb0b7ae2af2fa56e92e6c4a3b241833c3ea96.tar.bz2 atril-2a7eb0b7ae2af2fa56e92e6c4a3b241833c3ea96.tar.xz |
libdocument: Add ev_document_text_get_text_attrs()
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f72b619
Diffstat (limited to 'libdocument/ev-document-text.c')
-rw-r--r-- | libdocument/ev-document-text.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libdocument/ev-document-text.c b/libdocument/ev-document-text.c index 56c1a563..8fdc916c 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); +} |