Merge branch 'wip/baedert/for-master' into 'main'

label: Fix get_natural_wrap_mode() precondition check

See merge request GNOME/gtk!4278
This commit is contained in:
Matthias Clasen 2021-12-22 16:54:18 +00:00
commit c5973a630b

View File

@ -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;
}