2007-07-26 Neil J. Patel <njp@o-hand.com>
authorNeil J. Patel <njp@openedhand.com>
Thu, 26 Jul 2007 11:31:50 +0000 (11:31 +0000)
committerNeil J. Patel <njp@openedhand.com>
Thu, 26 Jul 2007 11:31:50 +0000 (11:31 +0000)
commitc1e84a8f3a3d31b42176f8c1efb4003a9f4fee5e
tree8fb675deeaf5834c0b8548611dbfc3e348d65a6d
parent294dd2afb3baabcf188ae62d4ac05de4e96b4731
2007-07-26  Neil J. Patel  <njp@o-hand.com>

* clutter/clutter-entry.c: (offset_to_bytes),
(clutter_entry_ensure_cursor_position),
(clutter_entry_new_with_text), (clutter_entry_new),
(clutter_entry_insert_unichar), (clutter_entry_delete_chars):
Fixed utf8 support so it actually works now, for both inserting and deleting
chars.
Fixed positioning of cursor for utf8 chars. Both GString and Pnago need
bytes (not documented!) for string manipulation, so making sure all values
were bytes and not char positions fixed the issue.
Set a default size of 50x50 for the entry, otherwise no chars can be seen
if the size is not set after creation (which confuses the developer).
ChangeLog
clutter/clutter-entry.c