Fix some mistakes.

This commit is contained in:
Daiki Ueno
2012-03-20 13:28:41 +09:00
parent 048e08b59a
commit 7eead1c1ff
15 changed files with 445 additions and 743 deletions

View File

@ -26,43 +26,21 @@
#endif /* HAVE_CONFIG_H */
#include "eek/eek.h"
#include "eek/eek-xkl.h"
static void
test_output_parse (void)
{
GString *output;
GInputStream *input;
EekLayout *layout;
EekKeyboard *keyboard;
Display *display;
GError *error;
output = g_string_sized_new (8192);
display = XOpenDisplay (NULL);
layout = eek_xkl_layout_new (display, NULL);
keyboard = eek_keyboard_new (layout, 640, 480);
g_object_unref (layout);
eek_keyboard_output (keyboard, output, 0);
g_object_unref (keyboard);
#if 0
fwrite (output->str, sizeof(gchar), output->len, stdout);
#endif
input = g_memory_input_stream_new_from_data (output->str,
output->len,
NULL);
layout = eek_xml_layout_new (input);
g_object_unref (input);
error = NULL;
layout = eek_xml_layout_new ("us", &error);
g_assert_no_error (error);
keyboard = eek_keyboard_new (layout, 640, 480);
g_object_unref (layout);
g_object_unref (keyboard);
g_string_free (output, TRUE);
}
int