[gtk/wip/otte/for-main] label: Fix docs



commit 02c484e8445f6ebf5853c099aea72088b2df19e7
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 46af96c7b0..9af80f43a9 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4022,12 +4022,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]