Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: src/main.c

Issue 5535007: ibus-chewing: Support IBus-1.4 API. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/ibus-chewing.git@master
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IBusChewingEngine-def.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/IBusChewingEngine-def.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698