diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-24 16:50:13 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-24 16:50:13 +0800 |
commit | 8df6310b6eaf26d31daf6d4fdf4d4c41265e64ec (patch) | |
tree | a7332fcb2a50b1f88492d208ef532c53c520d52a | |
parent | add104e86d0c4c53d5eea3f5b4dcc9db95b0f604 (diff) | |
download | ibus-8df6310b6eaf26d31daf6d4fdf4d4c41265e64ec.tar.gz ibus-8df6310b6eaf26d31daf6d4fdf4d4c41265e64ec.tar.xz ibus-8df6310b6eaf26d31daf6d4fdf4d4c41265e64ec.zip |
Fix typo.
-rw-r--r-- | src/ibusenginedesc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ibusenginedesc.c b/src/ibusenginedesc.c index 61e10b6..bf67843 100644 --- a/src/ibusenginedesc.c +++ b/src/ibusenginedesc.c @@ -241,8 +241,8 @@ ibus_engine_desc_copy (IBusEngineDesc *dest, void ibus_engine_desc_output (IBusEngineDesc *desc, - GString *output, - gint indent) + GString *output, + gint indent) { g_string_append_indent (output, indent); g_string_append (output, "<engine>\n"); @@ -263,6 +263,8 @@ ibus_engine_desc_output (IBusEngineDesc *desc, OUTPUT_ENTRY_1(author); OUTPUT_ENTRY_1(icon); OUTPUT_ENTRY_1(layout); + g_string_append_indent (output, indent + 1); + g_string_append_printf (output, "<priority>%u</priority>", desc->priority); #undef OUTPUT_ENTRY #undef OUTPUT_ENTRY_1 g_string_append_indent (output, indent); @@ -298,6 +300,7 @@ ibus_engine_desc_parse_xml_node (IBusEngineDesc *desc, #undef PARSE_ENTRY1 if (g_strcmp0 (sub_node->name , "priority") == 0) { desc->priority = atoi (sub_node->text); + continue; } g_warning ("<engines> element contains invalidate element <%s>", sub_node->name); } |