2007-06-29 Neil J. Patel <njp@o-hand.com>

* clutter/clutter-entry.c: (clutter_entry_handle_key_event),
	(clutter_entry_add), (clutter_entry_remove):
	Check if unichar == 0, and if so, return, as it will cause a delete in
	the GString.
This commit is contained in:
Neil J. Patel 2007-06-29 17:18:13 +00:00
parent 05e97e2c3e
commit 52b5bad316
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-06-29 Neil J. Patel <njp@o-hand.com>
* clutter/clutter-entry.c: (clutter_entry_handle_key_event),
(clutter_entry_add), (clutter_entry_remove):
Check if unichar == 0, and if so, return, as it will cause a delete in
the GString.
2007-06-29 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c: (texture_upload_data):

View File

@ -1080,6 +1080,8 @@ clutter_entry_handle_key_event (ClutterEntry *entry, ClutterKeyEvent *kev)
priv = entry->priv;
g_print ("%d, %d\n", kev, keyval);
pos = priv->position;
if (priv->text)
len = g_utf8_strlen (priv->text, -1);
@ -1162,6 +1164,9 @@ clutter_entry_add (ClutterEntry *entry, gunichar wc)
g_return_if_fail (CLUTTER_IS_ENTRY (entry));
g_return_if_fail (g_unichar_validate (wc));
if (wc == 0)
return;
priv = entry->priv;
g_object_ref (entry);
@ -1196,6 +1201,7 @@ clutter_entry_remove (ClutterEntry *entry, guint num)
g_return_if_fail (CLUTTER_IS_ENTRY (entry));
priv = entry->priv;
g_object_ref (entry);