mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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:
parent
c8ef4349fe
commit
1d53b773fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user