[clutter-text] Don't allow control characters to be inserted
authorNeil Roberts <neil@linux.intel.com>
Tue, 13 Jan 2009 17:52:38 +0000 (17:52 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 13 Jan 2009 18:17:17 +0000 (18:17 +0000)
commite93c266647e0d828459911a0999f342a975158b6
tree03968aec0044d2cf7cd03623363ff0aa0011ed86
parentde114dead76af8e8cccf872dd87aeee838e9e7e8
[clutter-text] Don't allow control characters to be inserted

If an unbound control key is pressed (such as Ctrl+R) it would insert
a rectangle into the text.

Also zero is considered a valid unicode character by
g_unichar_validate so pressing a key such as shift would cause the
current selection to be deleted. The character isn't actually inserted
because insert_unichar disallows zeroes.
clutter/clutter-text.c