Now im-ibus.so uses ibus_bus_new_async() instead of ibus_bus_new()
and then if ibus-setup-anthy calls GTK+ UI before ibus_bus_new(),
the async function is called instead and the delay is happened with
the latest ibus 1.5.
The fix is to call ibus_bus_new() before GTK+.
BUG=RH#859585
TEST=Manually
Review URL: https://codereview.appspot.com/6566053
def __init__(self):
super(Setup, self).__init__()
+
+ # IBus.Bus() calls ibus_bus_new().
+ # Gtk.Builder().add_from_file() also calls ibus_bus_new_async()
+ # via ibus_im_context_new().
+ # Then if IBus.Bus() is called after Gtk.Builder().add_from_file(),
+ # the connection delay would be happened without an async
+ # finish function.
+ self.__bus = None
+ self.__init_bus()
+
gtk_builder_file = path.join(path.dirname(__file__), "./setup.ui")
self.__builder = Gtk.Builder()
self.__builder.set_translation_domain(DOMAINNAME)
self.__builder.add_from_file(gtk_builder_file);
- self.__bus = None
- self.__init_bus()
self.__init_ui()
def __init_hotkey(self):