mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 06:04:10 +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;
|
priv = self->priv;
|
||||||
|
|
||||||
|
cursor_visible = !!cursor_visible;
|
||||||
|
|
||||||
if (priv->cursor_visible != cursor_visible)
|
if (priv->cursor_visible != cursor_visible)
|
||||||
{
|
{
|
||||||
priv->cursor_visible = cursor_visible;
|
priv->cursor_visible = cursor_visible;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user