focus_out the input context when input context is destroyed.
authorHuang Peng <shawn.p.huang@gmail.com>
Mon, 4 Aug 2008 13:15:51 +0000 (21:15 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Mon, 4 Aug 2008 13:15:51 +0000 (21:15 +0800)
daemon/bus.py
setup/setup.glade

index f4fb248..95353cc 100644 (file)
@@ -251,8 +251,8 @@ class IBus(ibus.Object):
     def __context_destroy_cb(self, context):
         assert context == self.__focused_context
         self.__remove_focused_context_handlers()
+        self.__panel.focus_out(context.get_id())
         self.__focused_context = None
-        self.__panel.reset()
 
     ##########################################################
     # methods for im engines
index 37f786c..9db2aec 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.4 on Mon Jul 28 13:34:26 2008 -->
+<!--Generated with glade3 3.4.4 on Mon Aug  4 11:37:47 2008 -->
 <glade-interface>
   <widget class="GtkDialog" id="dialog_setup">
     <property name="border_width">5</property>
@@ -22,7 +22,6 @@
                 <property name="homogeneous">True</property>
                 <child>
                   <widget class="GtkCheckButton" id="checkbutton1">
-                    <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="label" translatable="yes">Enable IBus</property>
                     <property name="response_id">0</property>