Support text symbol.

a
This commit is contained in:
Daiki Ueno
2011-08-30 16:24:56 +09:00
parent 88816018d8
commit b02ae1b7cc
15 changed files with 315 additions and 2 deletions

View File

@ -34,6 +34,7 @@
#include "eek-key.h"
#include "eek-xml.h"
#include "eek-keysym.h"
#include "eek-text.h"
#define g_string_append_indent(string, indent) \
{ \
@ -156,6 +157,11 @@ output_key_callback (EekElement *element, gpointer user_data)
"<keysym>%s</keysym>\n",
eek_symbol_get_name (symbol));
}
else if (EEK_IS_TEXT(symbol)) {
g_string_markup_printf (data->output,
"<text>%s</text>\n",
eek_text_get_text (EEK_TEXT(symbol)));
}
else
g_string_markup_printf (data->output,
"<symbol>%s</symbol>\n",