mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
cf4eb7e1ad
commit
9b6154c274
@ -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>
|
||||
|
@ -31,10 +31,7 @@ insert_text_handler (GtkEditable *editable,
|
||||
gpointer data)
|
||||
{
|
||||
int i;
|
||||
gchar *result = g_new (gchar, length);
|
||||
|
||||
for (i = 0; i < 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);
|
||||
|
Loading…
Reference in New Issue
Block a user