[gtk/wip/otte/inspector: 1/3] label: Fix docs




commit 810d734eda6b201f44a3a7dce9fa15780cfbe10d
Author: Benjamin Otte <otte redhat com>
Date:   Mon Dec 13 18:23:32 2021 +0100

    label: Fix docs

 gtk/gtklabel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index b3744ae838..a71791f4a5 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4003,12 +4003,12 @@ gtk_label_set_wrap_mode (GtkLabel *self,
  *
  * See [method@Gtk.Label.set_wrap_mode].
  *
- * Returns: %TRUE if the lines of the label are automatically wrapped.
+ * Returns: the line wrap mode
  */
 PangoWrapMode
 gtk_label_get_wrap_mode (GtkLabel *self)
 {
-  g_return_val_if_fail (GTK_IS_LABEL (self), FALSE);
+  g_return_val_if_fail (GTK_IS_LABEL (self), PANGO_WRAP_WORD);
 
   return self->wrap_mode;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]