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:
1a2802e
)
Set engine before set enable.
author
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 27 Jun 2008 07:07:09 +0000
(15:07 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 27 Jun 2008 07:07:09 +0000
(15:07 +0800)
daemon/bus.py
patch
|
blob
|
history
diff --git
a/daemon/bus.py
b/daemon/bus.py
index
5fc27bc
..
7cb1854
100644
(file)
--- a/
daemon/bus.py
+++ b/
daemon/bus.py
@@
-126,12
+126,12
@@
class IBus (ibus.Object):
if is_press and keyval == keysyms.space \
and (state & ~modifier.MOD2_MASK) == modifier.CONTROL_MASK:
enable = not context.is_enabled ()
- context.set_enable (enable)
if context.get_engine () == None and enable:
factory = self._factory_manager.get_default_factory ()
if factory:
engine = factory.create_engine ()
context.set_engine (engine)
+ context.set_enable (enable)
self._panel.states_changed ()
return True
return False