| Index: src/main.c
|
| diff --git a/src/main.c b/src/main.c
|
| index 5e3349a872d3aebc332f0677b7903ab28261967d..bd0a9bcbfcd8142fb12f1eafc19a567dc6137d6a 100644
|
| --- a/src/main.c
|
| +++ b/src/main.c
|
| @@ -59,14 +59,14 @@ ibus_disconnected_cb (IBusBus *bus,
|
| static void
|
| start_component (void)
|
| {
|
| + ibus_init();
|
| bus = ibus_bus_new ();
|
| g_signal_connect (bus, "disconnected", G_CALLBACK (ibus_disconnected_cb), NULL);
|
| iConfig = ibus_bus_get_config (bus);
|
| if (iConfig)
|
| g_object_ref_sink (iConfig);
|
|
|
| - IBusConnection *iConnection=ibus_bus_get_connection (bus);
|
| - factory = ibus_factory_new (iConnection);
|
| + factory = ibus_factory_new (ibus_bus_get_connection (bus));
|
| ibus_factory_add_engine (factory, "chewing", IBUS_TYPE_CHEWING_ENGINE);
|
|
|
| if (ibus) {
|
|
|