Skip to content
Snippets Groups Projects
Commit 329a2863 authored by Florian Müllner's avatar Florian Müllner
Browse files

st/label: Don't guard against NULL text

Commit 9168f605 marked the parameter as nullable, which is in
conflict with the precondition check. But given that NULL is
valid for the underlying ClutterText (and GtkLabel accepts it
as well), there's no strong argument for disallowing NULL, so
remove the precondition check.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2465>
parent 6dc63d3a
Branches
Tags
No related merge requests found
......@@ -409,7 +409,6 @@ st_label_set_text (StLabel *label,
ClutterText *ctext;
g_return_if_fail (ST_IS_LABEL (label));
g_return_if_fail (text != NULL);
priv = label->priv;
ctext = CLUTTER_TEXT (priv->label);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment