Make example UTF-8 safe. (#143264, Tommi Komulainen)

2004-06-22  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkeditable.sgml: Make example UTF-8
	safe.  (#143264, Tommi Komulainen)
This commit is contained in:
Matthias Clasen 2004-06-22 16:06:44 +00:00 committed by Matthias Clasen
parent cf4eb7e1ad
commit 9b6154c274
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkeditable.sgml: Make example UTF-8
safe. (#143264, Tommi Komulainen)
* gdk/tmpl/gcs.sgml: Move function docs inline.
Mon Jun 21 00:46:20 2004 Matthias Clasen <maclas@gmx.de>

View File

@ -31,10 +31,7 @@ insert_text_handler (GtkEditable *editable,
gpointer data)
{
int i;
gchar *result = g_new (gchar, length);
for (i = 0; i &lt; length; i++)
result[i] = islower (text[i]) ? toupper (text[i]) : text[i];
gchar *result = g_utf8_strup (text, length);
g_signal_handlers_block_by_func (editable,
(gpointer) insert_text_handler, data);