From 1d53b773fdd645f19ddfc66d74818f5f636dacc4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 30 Nov 2015 13:47:57 +0000 Subject: [PATCH] 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. --- clutter/clutter-text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 7b34da504..164cb03af 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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;