summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Correa Gómez <pabloyoyoista@postmarketos.org>2024-12-29 02:54:50 +0100
committerPablo Correa Gómez <pabloyoyoista@postmarketos.org>2024-12-29 02:54:50 +0100
commit2391c8d0685c0f29019084d674ad4ea17b9939a1 (patch)
treed959f43265b3cf9e3cc91991d91571bb08c48cae
parent26daa2a03963c1ceb5a61d6001815ef0f4b8d21d (diff)
glib: mark transfer of poppler_page_get_selected_region
And use the more modern syntax
-rw-r--r--glib/poppler-page.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc
index 29871887..a9c34957 100644
--- a/glib/poppler-page.cc
+++ b/glib/poppler-page.cc
@@ -720,8 +720,9 @@ cairo_region_t *poppler_page_get_selected_region(PopplerPage *page, gdouble scal
*
* Retrieves the contents of the specified @selection as text.
*
- * Return value: a pointer to the contents of the @selection
- * as a string
+ * Returns: (transfer full): a pointer to the contents of the
+ * @selection as a string
+ *
* Since: 0.16
**/
char *poppler_page_get_selected_text(PopplerPage *page, PopplerSelectionStyle style, PopplerRectangle *selection)