diff --git a/README b/README index d18e8218..a9bf5cec 100644 --- a/README +++ b/README @@ -1,27 +1,34 @@ -eek - easy embedded keyboard -*- outline -*- +EekBoard - Easy Embedded Keyboard -*- outline -*- *NOTE* This is not usable by now. The code has still a lot of bugs and lacks documentation. +* What's this? + +EekBoard is a virtual keyboard software package which ships with a +standalone virtual keyboard application ("eekboard"), and a library to +create keyboard-like UI ("libeek"). + * Quick look http://ueno.fedorapeople.org/eek/eek-in-demo.ogv (2MB, Ogg Theora video) * How to test - $ git clone git://github.com/ueno/eek.git - $ cd eek + $ git clone git://github.com/ueno/eek.git eekboard + $ cd eekboard $ ./autogen.sh --prefix=/usr --enable-gtk-doc $ make - $ ./examples/eek-clutter-xkb-test --geometry=kinesis --symbols=in + $ sudo make install + $ eekboard -* API (not fixed) +* libeek API (not fixed) -eek provides two different kinds of objects. One is "keyboard -element" and another is "keyboard layout engine". A keyboard element +libeek provides only two kinds of objects. One is "keyboard element" +and another is "keyboard layout engine". A keyboard element represents either a keyboard, a section, or a key. Each element -implements the Builder pattern[1] so that it can be converted into a UI -widget (ClutterActor, GTK+ button, ...). A layout engine arranges +implements the Builder pattern[1] so that it can be converted into a +UI widget (ClutterActor, GTK+ button, ...). A layout engine arranges keyboard elements using information from external configuration mechanisms (XKB, matchbox-keyboard layouts in XML, ...) @@ -45,4 +52,3 @@ and an XKB-based layout engine: Footnotes: [1] http://en.wikipedia.org/wiki/Builder_pattern - diff --git a/src/eekboard.c b/src/eekboard.c index a9d6fc79..e9f7b5d4 100644 --- a/src/eekboard.c +++ b/src/eekboard.c @@ -153,6 +153,7 @@ create_keyboard (ClutterActor *stage, { EekKeyboard *keyboard; ClutterActor *actor; + GValue value = {0}; keyboard = eek_clutter_keyboard_new (width, height); g_signal_connect (keyboard, "key-pressed", @@ -162,9 +163,9 @@ create_keyboard (ClutterActor *stage, eek_keyboard_set_layout (keyboard, layout); actor = eek_clutter_keyboard_get_actor (EEK_CLUTTER_KEYBOARD(keyboard)); clutter_actor_set_name (actor, "keyboard"); - clutter_actor_get_size (actor, &width, &height); + clutter_actor_get_size (actor, &stage_width, &stage_height); clutter_container_add_actor (CLUTTER_CONTAINER(stage), actor); - clutter_actor_set_size (stage, width, height); + clutter_actor_set_size (stage, stage_width, stage_height); return keyboard; }