Skip to content

Commit

Permalink
st-label: Don't guard against NULL text
Browse files Browse the repository at this point in the history
NULL is allowed for the underlying clutter_text, so there is no real reason
to guard against this. This also cleans up spammy warnings when using
g_object_bind to set/update the labels.
  • Loading branch information
JosephMcc committed Jan 3, 2025
1 parent 3bed0fb commit a99a864
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/st/st-label.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,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);
Expand Down

0 comments on commit a99a864

Please sign in to comment.