summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontext.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-07-29 21:04:22 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-07-29 21:04:22 +0000
commitcd44863bd654c2c1ac75f832e4e48e37d3601495 (patch)
treef80ce47f7aa486eb767d71e9885be1167c83b524 /gtk/gtkimcontext.c
parentba0a457c84378742bdc9abd0f0633d3ed7585441 (diff)
downloadgtk+-cd44863bd654c2c1ac75f832e4e48e37d3601495.tar.gz
Unset gtk-im-surrounding-info object data again. (Fix from Yao Zhang,
Mon Jul 29 16:42:30 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkimcontext.c (gtk_im_context_real_get_surrounding): Unset gtk-im-surrounding-info object data again. (Fix from Yao Zhang, #86811)
Diffstat (limited to 'gtk/gtkimcontext.c')
-rw-r--r--gtk/gtkimcontext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 925021f907..5f1067b528 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -227,7 +227,10 @@ gtk_im_context_real_get_surrounding (GtkIMContext *context,
}
if (info_is_local)
- g_free (info->text);
+ {
+ g_free (info->text);
+ g_object_set_data (G_OBJECT (context), "gtk-im-surrounding-info", NULL);
+ }
return result;
}