summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Correa Gómez <pabloyoyoista@postmarketos.org>2024-12-29 02:56:51 +0100
committerPablo Correa Gómez <pabloyoyoista@postmarketos.org>2024-12-29 02:56:51 +0100
commitccdd172fc6361b45674639bfdc44f209038af77d (patch)
treec07e8bd6667c43a46e87cb2c9fdb3af22fbbc481
parent2391c8d0685c0f29019084d674ad4ea17b9939a1 (diff)
glib: rename border_width to just width for annots
This also fixes the introspection data, since the header file is using only width too
-rw-r--r--glib/poppler-annot.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/glib/poppler-annot.cc b/glib/poppler-annot.cc
index 6e3698c8..5a25707a 100644
--- a/glib/poppler-annot.cc
+++ b/glib/poppler-annot.cc
@@ -2492,7 +2492,7 @@ gboolean poppler_annot_stamp_set_custom_image(PopplerAnnotStamp *poppler_annot,
/**
* poppler_annot_get_border_width:
* @poppler_annot: a #PopplerAnnot
- * @border_width: a valid pointer to a double
+ * @width: a valid pointer to a double
*
* Returns the border width of the annotation. Some PDF editors set a border
* width even if the border is not actually drawn.
@@ -2502,22 +2502,22 @@ gboolean poppler_annot_stamp_set_custom_image(PopplerAnnotStamp *poppler_annot,
*
* Since: 24.12.0
*/
-gboolean poppler_annot_get_border_width(PopplerAnnot *poppler_annot, double *border_width)
+gboolean poppler_annot_get_border_width(PopplerAnnot *poppler_annot, double *width)
{
Annot *annot = poppler_annot->annot;
AnnotBorder *b = annot->getBorder();
if (b) {
- *border_width = b->getWidth();
+ *width = b->getWidth();
return TRUE;
} else {
- *border_width = 0.;
+ *width = 0.;
return FALSE;
}
}
/**
* poppler_annot_set_border_width:
* @poppler_annot: a #PopplerAnnot
- * @border_width: the new border width
+ * @width: the new border width
*
* Sets the border width of the annotation. Since there is currently no
* mechanism in the GLib binding to control the appearance of the border width,
@@ -2526,11 +2526,11 @@ gboolean poppler_annot_get_border_width(PopplerAnnot *poppler_annot, double *bor
*
* Since: 24.12.0
*/
-void poppler_annot_set_border_width(PopplerAnnot *poppler_annot, double border_width)
+void poppler_annot_set_border_width(PopplerAnnot *poppler_annot, double width)
{
Annot *annot = poppler_annot->annot;
std::unique_ptr<AnnotBorderArray> border = std::make_unique<AnnotBorderArray>();
- border->setWidth(border_width);
+ border->setWidth(width);
annot->setBorder(std::move(border));
}