text: Enforce boolean value

We store the cursor-visible value in a bit field, which means that we
need to enforce the argument for the setter to either 0 or 1 in order to
fit.
This commit is contained in:
Emmanuele Bassi 2015-11-30 13:47:57 +00:00
parent c8ef4349fe
commit 1d53b773fd

View File

@ -4656,6 +4656,8 @@ clutter_text_set_cursor_visible (ClutterText *self,
priv = self->priv;
cursor_visible = !!cursor_visible;
if (priv->cursor_visible != cursor_visible)
{
priv->cursor_visible = cursor_visible;