diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-09-19 15:17:13 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-09-19 15:17:13 +0000 |
commit | 257e0f26efef81772816a722f730df0387a54263 (patch) | |
tree | 13f1c2b8a78e0d2d225fdb94ff965f8e04deaba6 /gtk/gtkimcontextsimple.c | |
parent | f787ebb03f24399b9f862caf9116ce7c34cbd3df (diff) | |
download | gtk+-gtk-new-im.tar.gz |
Rip out support for multiple locales; that simple doesn't work reliablygtk-new-im
Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
* modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
out support for multiple locales; that simple doesn't
work reliably with current Xlib
* gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
Add support for positioning the cursor within the preedit string.
* modules/input/gtkimcontextxim.[ch]:
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 397c18a9d9..a01c85c3bd 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -747,7 +747,8 @@ static gboolean gtk_im_context_simple_filter_keypress (GtkIMContext static void gtk_im_context_simple_reset (GtkIMContext *context); static void gtk_im_context_simple_get_preedit_string (GtkIMContext *context, gchar **str, - PangoAttrList **attrs); + PangoAttrList **attrs, + gint *cursor_pos); static GObjectClass *parent_class; @@ -1006,7 +1007,8 @@ gtk_im_context_simple_reset (GtkIMContext *context) static void gtk_im_context_simple_get_preedit_string (GtkIMContext *context, gchar **str, - PangoAttrList **attrs) + PangoAttrList **attrs, + gint *cursor_pos) { char outbuf[7]; int len = 0; @@ -1031,6 +1033,9 @@ gtk_im_context_simple_get_preedit_string (GtkIMContext *context, pango_attr_list_insert (*attrs, attr); } } + + if (cursor_pos) + cursor_pos = context_simple->tentative_match ? 1 : 0; } /** |