text: Zero out the cursor_pos member

Do not trust the zero-ing done by GObject on the private data structure,
and use memset() instead to zero the ClutterGeometry structure.
This commit is contained in:
Emmanuele Bassi 2010-01-11 17:08:42 +00:00
parent 5c14538c14
commit bc8a80fee5

View File

@ -2835,6 +2835,7 @@ clutter_text_init (ClutterText *self)
priv->max_length = 0; priv->max_length = 0;
priv->cursor_size = DEFAULT_CURSOR_SIZE; priv->cursor_size = DEFAULT_CURSOR_SIZE;
memset (&priv->cursor_pos, 0, sizeof (ClutterGeometry));
priv->font_changed_id = priv->font_changed_id =
g_signal_connect_swapped (clutter_get_default_backend (), g_signal_connect_swapped (clutter_get_default_backend (),