summaryrefslogtreecommitdiffstats
path: root/src/Main.cc
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-05-17 10:41:11 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-05-17 10:41:11 +0800
commit51438d761eb28fc9c19efc7eef82681ebdc86e65 (patch)
treee4376d04599181443cfd85c12c9c9edc8c6794b4 /src/Main.cc
parent28d811bfa3676d1f96ec7b366caedececb6cc60b (diff)
parentc5aefb2ca27010474d12032f51be840c92ed4770 (diff)
downloadibus-libpinyin-51438d761eb28fc9c19efc7eef82681ebdc86e65.tar.gz
ibus-libpinyin-51438d761eb28fc9c19efc7eef82681ebdc86e65.tar.xz
ibus-libpinyin-51438d761eb28fc9c19efc7eef82681ebdc86e65.zip
Merge branch 'bopomofo'
Conflicts: ibus-pinyin.spec.in
Diffstat (limited to 'src/Main.cc')
-rw-r--r--src/Main.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Main.cc b/src/Main.cc
index c53f44b..0572f9b 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -70,17 +70,28 @@ start_component (void)
"zh_CN",
"GPL",
"Peng Huang <shawn.p.huang@gmail.com>",
- PKGDATADIR"/icons/ibus-pinyin.svg",
+ PKGDATADIR "/icons/ibus-pinyin.svg",
+ "us"));
+ ibus_component_add_engine (component,
+ ibus_engine_desc_new ("bopomofo-debug",
+ N_("Bopomofo (debug)"),
+ N_("Bopomofo input method (debug)"),
+ "zh_CN",
+ "GPL",
+ "Peng Huang <shawn.p.huang@gmail.com>",
+ PKGDATADIR "/icons/ibus-bopomofo.svg",
"us"));
factory = ibus_factory_new (ibus_bus_get_connection (bus));
if (ibus) {
ibus_factory_add_engine (factory, "pinyin", IBUS_TYPE_PINYIN_ENGINE);
+ ibus_factory_add_engine (factory, "bopomofo", IBUS_TYPE_PINYIN_ENGINE);
ibus_bus_request_name (bus, "org.freedesktop.IBus.Pinyin", 0);
}
else {
ibus_factory_add_engine (factory, "pinyin-debug", IBUS_TYPE_PINYIN_ENGINE);
+ ibus_factory_add_engine (factory, "bopomofo-debug", IBUS_TYPE_PINYIN_ENGINE);
ibus_bus_register_component (bus, component);
}