Handle character positions in UTF-8 strings correctly. (#133315, Theppitak

Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
	positions in UTF-8 strings correctly.  (#133315, Theppitak
	Karoonboonyanan)
This commit is contained in:
Matthias Clasen 2004-02-06 21:47:37 +00:00 committed by Matthias Clasen
parent 95ba48b38f
commit 09284d7aa0
6 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly. (#133315, Theppitak
Karoonboonyanan)
2004-02-06 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Cleanup using

View File

@ -1,3 +1,9 @@
Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly. (#133315, Theppitak
Karoonboonyanan)
2004-02-06 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Cleanup using

View File

@ -1,3 +1,9 @@
Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly. (#133315, Theppitak
Karoonboonyanan)
2004-02-06 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Cleanup using

View File

@ -1,3 +1,9 @@
Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly. (#133315, Theppitak
Karoonboonyanan)
2004-02-06 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Cleanup using

View File

@ -1,3 +1,9 @@
Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly. (#133315, Theppitak
Karoonboonyanan)
2004-02-06 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Cleanup using

View File

@ -227,7 +227,7 @@ gtk_combo_entry_key_press (GtkEntry * entry, GdkEventKey * event, GtkCombo * com
if (nprefix && strlen (nprefix) > strlen (prefix))
{
gtk_editable_insert_text (editable, nprefix + pos,
gtk_editable_insert_text (editable, g_utf8_offset_to_pointer (nprefix, pos),
strlen (nprefix) - strlen (prefix), &pos);
gtk_editable_set_position (editable, pos);
}