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:
fb153c2
)
Call gtk_key_snooper_remove when GTK IM client is switched.
author
fujiwarat
<takao.fujiwara1@gmail.com>
Fri, 18 Feb 2011 19:52:40 +0000
(
04:52
+0900)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Fri, 18 Feb 2011 20:00:36 +0000
(15:00 -0500)
client/gtk2/ibusimcontext.c
patch
|
blob
|
history
diff --git
a/client/gtk2/ibusimcontext.c
b/client/gtk2/ibusimcontext.c
index
bb5ae5c
..
c4ade53
100644
(file)
--- a/
client/gtk2/ibusimcontext.c
+++ b/
client/gtk2/ibusimcontext.c
@@
-620,6
+620,12
@@
ibus_im_context_finalize (GObject *obj)
pango_attr_list_unref (ibusimcontext->preedit_attrs);
}
+ if (_key_snooper_id != 0) {
+ IDEBUG ("snooper is terminated.");
+ gtk_key_snooper_remove (_key_snooper_id);
+ _key_snooper_id = 0;
+ }
+
G_OBJECT_CLASS(parent_class)->finalize (obj);
}