[clutter] text: Enforce boolean value
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] text: Enforce boolean value
- Date: Mon, 30 Nov 2015 13:49:10 +0000 (UTC)
commit 1d53b773fdd645f19ddfc66d74818f5f636dacc4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Nov 30 13:47:57 2015 +0000
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 7b34da5..164cb03 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]