projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32f14cc
)
Clean preedit when connection is disconnected, and emit preedit-changed signal.
author
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 2 Jun 2008 00:55:40 +0000
(08:55 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 2 Jun 2008 00:55:40 +0000
(08:55 +0800)
gtk2/gikimclient.c
patch
|
blob
|
history
diff --git
a/gtk2/gikimclient.c
b/gtk2/gikimclient.c
index
c075161
..
feba419
100644
(file)
--- a/
gtk2/gikimclient.c
+++ b/
gtk2/gikimclient.c
@@
-282,6
+282,20
@@
_gik_im_client_ibus_close (GikIMClient *client)
dbus_connection_unref (priv->ibus);
priv->ibus = NULL;
}
+
+ if (priv->preedit_string) {
+ g_free (priv->preedit_string);
+ priv->preedit_string = NULL;
+ }
+
+ if (priv->preedit_attrs) {
+ pango_attr_list_unref (priv->preedit_attrs);
+ priv->preedit_attrs = NULL;
+ }
+
+ if (priv->context) {
+ g_signal_emit_by_name (priv->context, "preedit-changed");
+ }
}
static gboolean