From 44de08544d1d205c737a68a008b6c11911d30625 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Fri, 28 Feb 2014 19:14:36 +0200 Subject: [PATCH] glib: Fixes in the API reference documentation - Remove the references to non-existent methods for PopplerStructureElement, and point to PopplerStructureElementIter instead to point out how to obtain the structure tree. - Remove a non-existent include in poppler-docs.sgml - Add POPPLER_TYPE_TEXT_SPAN to the list of private symbols. --- glib/poppler-structure-element.cc | 6 +++--- glib/reference/poppler-docs.sgml | 1 - glib/reference/poppler-sections.txt | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/poppler-structure-element.cc b/glib/poppler-structure-element.cc index b819ff3..736c863 100644 --- a/glib/poppler-structure-element.cc +++ b/glib/poppler-structure-element.cc @@ -40,9 +40,9 @@ * * Instances of #PopplerStructureElement are used to describe the structure * of a #PopplerDocument. To access the elements in the structure of the - * document, first use poppler_document_get_structure() to obtain its - * #PopplerStructure, and then use poppler_structure_get_n_children() - * and poppler_structure_get_child() to enumerate the top level elements. + * document, use poppler_structure_element_iter_new() to obtain an iterator + * for the top-level #PopplerStructure, and then use the + * #PopplerStructureElementIter methods to traverse the structure tree. */ typedef struct _PopplerStructureElementClass diff --git a/glib/reference/poppler-docs.sgml b/glib/reference/poppler-docs.sgml index b817a0d..6dcc658 100644 --- a/glib/reference/poppler-docs.sgml +++ b/glib/reference/poppler-docs.sgml @@ -23,7 +23,6 @@ - diff --git a/glib/reference/poppler-sections.txt b/glib/reference/poppler-sections.txt index 31f200f..a56ace8 100644 --- a/glib/reference/poppler-sections.txt +++ b/glib/reference/poppler-sections.txt @@ -699,6 +699,7 @@ POPPLER_TYPE_STRUCTURE_SCOPE POPPLER_TYPE_STRUCTURE_TEXT_ALIGN POPPLER_TYPE_STRUCTURE_TEXT_DECORATION POPPLER_TYPE_STRUCTURE_WRITING_MODE +POPPLER_TYPE_TEXT_SPAN poppler_structure_element_get_type -- 1.9.0