summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-10-21 15:22:35 -0200
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-10-21 19:36:27 -0200
commit7f4340f88cae3ac59929c1e32af1a49efe4550c1 (patch)
treeec2ff5e506a2fa65ee69a5c4615fa0b453fc9884
parentfc78cc7c82ec8c80b01e43d12fb8f6e5a56e3aac (diff)
downloadweekeyboard-7f4340f88cae3ac59929c1e32af1a49efe4550c1.tar.gz
weekeyboard-7f4340f88cae3ac59929c1e32af1a49efe4550c1.tar.bz2
weekeyboard-7f4340f88cae3ac59929c1e32af1a49efe4550c1.zip
Fix ibus-test to match new wkb-ibus connection scheme
Change-Id: Iba231dd9e555e305757db91e4ff87279d40cb52e Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
-rw-r--r--src/wkb-ibus-test.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/wkb-ibus-test.c b/src/wkb-ibus-test.c
index ec7d7a3..a1a0f67 100644
--- a/src/wkb-ibus-test.c
+++ b/src/wkb-ibus-test.c
@@ -28,16 +28,9 @@
static void
_finish(int foo)
{
- ERR("FINISH\n");
wkb_ibus_shutdown();
}
-static Eina_Bool
-_connect_timer(void *data)
-{
- return !wkb_ibus_connect();
-}
-
int
main (int argc, char *argv[])
{
@@ -55,10 +48,10 @@ main (int argc, char *argv[])
if (!wkb_ibus_init())
{
ERR("Error initializing ibus");
- goto end;
+ goto ibus_err;
}
- ecore_timer_add(1, _connect_timer, NULL);
+ wkb_ibus_connect();
signal(SIGTERM, _finish);
signal(SIGINT, _finish);
@@ -66,7 +59,7 @@ main (int argc, char *argv[])
ecore_main_loop_begin();
ret = 0;
-end:
+ibus_err:
ecore_shutdown();
ecore_err: