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

Unified Diff: src/main.c

Issue 5449001: ibus-xkb-layouts: Support ibus-1.4. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/ibus-xkb-layouts.git@master
Patch Set: Created 10 years, 1 month 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 | « no previous file | src/xkbutil.c » ('j') | 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 65275f337bd8d8df286e0f62760083becfac96e0..a539ccd6a3dc7df5577f1960bd09362a6fec2960 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,7 +48,11 @@ start_component (void)
engines = ibus_component_get_engines (component);
for (p = engines; p != NULL; p = p->next) {
IBusEngineDesc *engine = (IBusEngineDesc *)p->data;
+#if IBUS_CHECK_VERSION(1, 3, 99)
+ ibus_factory_add_engine (factory, ibus_engine_desc_get_name(engine), IBUS_TYPE_XKB_LAYOUT_ENGINE);
+#else
ibus_factory_add_engine (factory, engine->name, IBUS_TYPE_XKB_LAYOUT_ENGINE);
+#endif
}
if (ibus) {
« no previous file with comments | « no previous file | src/xkbutil.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698