[gtk/wip/baedert/for-master] label: Fix get_natural_wrap_mode() precondition check




commit e5a88b64b131db10e5655c8bd9800f4c2dfa5ee4
Author: Timm Bäder <mail baedert org>
Date:   Wed Dec 22 17:38:05 2021 +0100

    label: Fix get_natural_wrap_mode() precondition check

 gtk/gtklabel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index b1886a3b41..e0f5565b84 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4119,7 +4119,7 @@ gtk_label_set_natural_wrap_mode (GtkLabel           *self,
 GtkNaturalWrapMode
 gtk_label_get_natural_wrap_mode (GtkLabel *self)
 {
-  g_return_val_if_fail (GTK_IS_LABEL (self), PANGO_WRAP_CHAR);
+  g_return_val_if_fail (GTK_IS_LABEL (self), GTK_NATURAL_WRAP_INHERIT);
 
   return self->natural_wrap_mode;
 }


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