From 8df6310b6eaf26d31daf6d4fdf4d4c41265e64ec Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Tue, 24 Feb 2009 16:50:13 +0800 Subject: Fix typo. --- src/ibusenginedesc.c | 7 +++++-- 1 file 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, "\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, "%u", 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 (" element contains invalidate element <%s>", sub_node->name); } -- cgit