From 7af992974e08707d583cdb94d7353e4e64ee5633 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 11 Dec 2008 11:42:33 +0000 Subject: [PATCH] Initialize the cursor position By default, the cursor position is initialized to -1, meaning "place the cursor always at the end of the text". --- clutter/clutter-text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index ffee909d9..2fe488bc3 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -1391,6 +1391,8 @@ clutter_text_init (ClutterText *self) priv->font_name = g_strdup (DEFAULT_FONT_NAME); priv->font_desc = pango_font_description_from_string (priv->font_name); + priv->position = -1; + priv->x_pos = -1; priv->cursor_visible = TRUE; priv->editable = FALSE;