diff options
Diffstat (limited to 'src/ibusenginedesc.c')
-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); } |