Use GInitable to define EekXklLayout.

This commit is contained in:
Daiki Ueno
2012-03-16 17:36:20 +09:00
parent 32a1d23c2a
commit a6fe5bd859
9 changed files with 224 additions and 132 deletions

View File

@ -35,10 +35,12 @@ test_output_parse (void)
GInputStream *input;
EekLayout *layout;
EekKeyboard *keyboard;
Display *display;
output = g_string_sized_new (8192);
layout = eek_xkl_layout_new ();
display = XOpenDisplay (NULL);
layout = eek_xkl_layout_new (display, NULL);
keyboard = eek_keyboard_new (layout, 640, 480);
g_object_unref (layout);