diff options
author | Takao Fujiwara <takao.fujiwara1@gmail.com> | 2012-07-16 10:57:16 -0400 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2012-07-16 10:57:16 -0400 |
commit | de5256283674c5191abe182c6e247e0311f640c3 (patch) | |
tree | 7427a99cfc7800848f626d8ae3a1f545e19024e8 | |
parent | f11ebee5ddc558d80f1f95d71427a873b4ed7b68 (diff) | |
download | ibus-pinyin-de5256283674c5191abe182c6e247e0311f640c3.tar.gz |
Add a symbol property in IBusEngineDesc.
BUG=http://code.google.com/p/ibus/issues/detail?id=1473
TEST=Manually
Review URL: https://codereview.appspot.com/6345045
Patch from Takao Fujiwara <takao.fujiwara1@gmail.com>.
-rw-r--r-- | src/PYMain.cc | 40 | ||||
-rw-r--r-- | src/pinyin.xml.in.in | 2 |
2 files changed, 24 insertions, 18 deletions
diff --git a/src/PYMain.cc b/src/PYMain.cc index 670cd8d..a7e0566 100644 --- a/src/PYMain.cc +++ b/src/PYMain.cc @@ -100,25 +100,29 @@ start_component (void) "", "ibus-pinyin"); ibus_component_add_engine (component, - ibus_engine_desc_new ("pinyin-debug", - N_("Pinyin (debug)"), - N_("Pinyin input method (debug)"), - "zh_CN", - "GPL", - "Peng Huang <shawn.p.huang@gmail.com>\n" - "BYVoid <byvoid1@gmail.com>", - PKGDATADIR "/icons/ibus-pinyin.svg", - "us")); + ibus_engine_desc_new_varargs ("name", "pinyin-debug", + "longname", N_("Pinyin (debug)"), + "description", N_("Pinyin input method (debug)"), + "language", "zh_CN", + "license", "GPL", + "author", "Peng Huang <shawn.p.huang@gmail.com>\n" + "BYVoid <byvoid1@gmail.com>", + "icon", PKGDATADIR "/icons/ibus-pinyin.svg", + "layout", "us", + "symbol", "\u4e2d", + NULL)); ibus_component_add_engine (component, - ibus_engine_desc_new ("bopomofo-debug", - N_("Bopomofo (debug)"), - N_("Bopomofo input method (debug)"), - "zh_CN", - "GPL", - "BYVoid <byvoid1@gmail.com>\n" - "Peng Huang <shawn.p.huang@gmail.com>", - PKGDATADIR "/icons/ibus-bopomofo.svg", - "us")); + ibus_engine_desc_new_varargs ("name", "bopomofo-debug", + "longname", N_("Bopomofo (debug)"), + "description", N_("Bopomofo input method (debug)"), + "language", "zh_CN", + "license", "GPL", + "author", "BYVoid <byvoid1@gmail.com>\n" + "Peng Huang <shawn.p.huang@gmail.com>", + "icon", PKGDATADIR "/icons/ibus-bopomofo.svg", + "layout", "us", + "symbol", "\u4e2d", + NULL)); factory = ibus_factory_new (ibus_bus_get_connection (bus)); diff --git a/src/pinyin.xml.in.in b/src/pinyin.xml.in.in index 94b803a..3cf4c5d 100644 --- a/src/pinyin.xml.in.in +++ b/src/pinyin.xml.in.in @@ -23,6 +23,7 @@ Peng Wu <alexepico@gmail.com></author> <longname>Pinyin</longname> <description>Pinyin input method</description> <rank>99</rank> + <symbol>中</symbol> </engine> <engine> <name>bopomofo</name> @@ -36,6 +37,7 @@ Peng Wu <alexepico@gmail.com></author> <longname>Bopomofo</longname> <description>Bopomofo input method</description> <rank>98</rank> + <symbol>中</symbol> </engine> </engines> |