diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-31 13:02:08 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-31 13:02:08 +0800 |
| commit | 708442bf3056513db933fdf37dd8b0f475bca83e (patch) | |
| tree | 918560f5ea6b1b4b337668cd8ba49dddd31f0511 /gconf | |
| parent | 67bb63aa51963b487037de820c32e3986832a309 (diff) | |
| download | ibus-708442bf3056513db933fdf37dd8b0f475bca83e.tar.gz ibus-708442bf3056513db933fdf37dd8b0f475bca83e.tar.xz ibus-708442bf3056513db933fdf37dd8b0f475bca83e.zip | |
Rename IBus to Bus.
Diffstat (limited to 'gconf')
| -rw-r--r-- | gconf/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gconf/main.py b/gconf/main.py index 295f3ae..3b915df 100644 --- a/gconf/main.py +++ b/gconf/main.py @@ -31,13 +31,13 @@ CONFIG_PATH = "/org/freedesktop/IBus/GConf" class GconfApplication: def __init__(self): self.__mainloop = gobject.MainLoop() - self.__ibus = ibus.IBus() - self.__ibus.connect("destroy", self.__ibus_destroy_cb) + self.__bus = ibus.Bus() + self.__bus.connect("destroy", self.__bus_destroy_cb) - self.__config = config.Config(self.__ibus, CONFIG_PATH) + self.__config = config.Config(self.__bus, CONFIG_PATH) self.__config.connect("destroy", self.__config_destroy_cb) - self.__ibus.register_config(CONFIG_PATH, True) + self.__bus.register_config(CONFIG_PATH, True) def run(self): self.__mainloop.run() @@ -45,7 +45,7 @@ class GconfApplication: def __config_destroy_cb(self, config): self.__mainloop.quit() - def __ibus_destroy_cb(self, _ibus): + def __bus_destroy_cb(self, _ibus): print "disconnected" self.__mainloop.quit() |
