cursor_pos is in characters, not bytes. (#153332, Owen Taylor)

2004-09-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
	cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
This commit is contained in:
Matthias Clasen 2004-09-26 04:23:56 +00:00 committed by Matthias Clasen
parent f47afed1ff
commit 53d2169b64
5 changed files with 26 additions and 6 deletions

View File

@ -1,10 +1,15 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
2004-09-25 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
a further fix for bug #145467.
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
2004-09-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)

View File

@ -1,10 +1,15 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
2004-09-25 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
a further fix for bug #145467.
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
2004-09-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)

View File

@ -1,10 +1,15 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
2004-09-25 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
a further fix for bug #145467.
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
2004-09-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)

View File

@ -1,10 +1,15 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
2004-09-25 Robert Ögren <gtk@roboros.com>
* gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
a further fix for bug #145467.
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
2004-09-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)

View File

@ -269,7 +269,7 @@ gtk_im_context_set_client_window (GtkIMContext *context,
* @attrs: location to store the retrieved attribute list.
* When you are done with this list, you must
* unreference it with pango_attr_list_unref().
* @cursor_pos: location to store position of cursor (in bytes)
* @cursor_pos: location to store position of cursor (in characters)
* within the preedit string.
*
* Retrieve the current preedit string for the input context,
@ -522,7 +522,7 @@ gtk_im_context_get_surrounding (GtkIMContext *context,
* Asks the widget that the input context is attached to to delete
* characters around the cursor position by emitting the
* GtkIMContext::delete_surrounding signal. Note that @offset and @n_chars
* are in characters not in bytes, which differs from the usage other
* are in characters not in bytes which differs from the usage other
* places in #GtkIMContext.
*
* In order to use this function, you should first call