summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-09-19 15:17:13 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-09-19 15:17:13 +0000
commit257e0f26efef81772816a722f730df0387a54263 (patch)
tree13f1c2b8a78e0d2d225fdb94ff965f8e04deaba6 /gtk/gtktextview.c
parentf787ebb03f24399b9f862caf9116ce7c34cbd3df (diff)
downloadgtk+-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/gtktextview.c')
-rw-r--r--gtk/gtktextview.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a6220e71a4..7351cfd148 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -2946,9 +2946,10 @@ gtk_text_view_preedit_changed_handler (GtkIMContext *context,
{
gchar *str;
PangoAttrList *attrs;
+ gint cursor_pos;
- gtk_im_context_get_preedit_string (context, &str, &attrs);
- gtk_text_layout_set_preedit_string (text_view->layout, str, attrs);
+ gtk_im_context_get_preedit_string (context, &str, &attrs, &cursor_pos);
+ gtk_text_layout_set_preedit_string (text_view->layout, str, attrs, cursor_pos);
pango_attr_list_unref (attrs);
g_free (str);