Add ConfigReload signal.
authorHuang Peng <shawn.p.huang@gmail.com>
Wed, 30 Jul 2008 04:09:50 +0000 (12:09 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Wed, 30 Jul 2008 04:09:50 +0000 (12:09 +0800)
daemon/bus.py
ibus/interface/iibus.py

index f3e544859a7c119b244d84382510c14444130abc..411ca6ab4dc4919a42ab0bfc0ed6a0d2e73a00d5 100644 (file)
@@ -319,6 +319,8 @@ class IBus(ibus.Object):
         self.__config = Config(conn, object_path)
         self.__config.connect("value-changed", self.__config_value_changed_cb)
         self.__config.connect("destroy", self.__config_destroy_cb)
+        for conn in self.__connections:
+            conn.emit_dbus_signal("ConfigReload")
 
     def config_set_value(self, key, value, conn, **kargs):
         self.__config.set_value(key, value, **kargs)
index 4e915234a51582a03c1a85df0e37dad26f1a783a..6a406ac8568566c6f05c8c8e5e0d2b6b44539195 100644 (file)
@@ -126,3 +126,5 @@ class IIBus(dbus.service.Object):
     def Disabled(self, ic): pass
 
     def ConfigValueChanged(self, key, value): pass
+
+    def ConfigReload(self): pass