[evince] docs: Add ev_mapping_list_get symbol to libevdocument-sections.txt
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] docs: Add ev_mapping_list_get symbol to libevdocument-sections.txt
- Date: Thu, 3 Oct 2013 12:21:19 +0000 (UTC)
commit 871da07d8fed5da6448f936a213ae8d63893df86
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Thu Oct 3 14:18:02 2013 +0200
docs: Add ev_mapping_list_get symbol to libevdocument-sections.txt
Add also since tag to API docs comment and missing g_return macro.
.../libdocument/libevdocument-sections.txt | 1 +
libdocument/ev-mapping-list.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/help/reference/libdocument/libevdocument-sections.txt
b/help/reference/libdocument/libevdocument-sections.txt
index 59ae691..e2f26cf 100644
--- a/help/reference/libdocument/libevdocument-sections.txt
+++ b/help/reference/libdocument/libevdocument-sections.txt
@@ -784,6 +784,7 @@ EvMappingList
ev_mapping_list_new
ev_mapping_list_ref
ev_mapping_list_unref
+ev_mapping_list_get
ev_mapping_list_get_data
ev_mapping_list_get_list
ev_mapping_list_get_page
diff --git a/libdocument/ev-mapping-list.c b/libdocument/ev-mapping-list.c
index a7abc40..cf7a59a 100644
--- a/libdocument/ev-mapping-list.c
+++ b/libdocument/ev-mapping-list.c
@@ -106,6 +106,8 @@ ev_mapping_list_nth (EvMappingList *mapping_list,
* @y: Y coordinate
*
* Returns: (transfer none): the #EvMapping in the list at coordinates (x, y)
+ *
+ * Since: 3.12
*/
EvMapping *
ev_mapping_list_get (EvMappingList *mapping_list,
@@ -114,6 +116,8 @@ ev_mapping_list_get (EvMappingList *mapping_list,
{
GList *list;
+ g_return_val_if_fail (mapping_list != NULL, NULL);
+
for (list = mapping_list->list; list; list = list->next) {
EvMapping *mapping = list->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]