diff options
author | Robert Erickson <rerickso@jaguarlandrover.com> | 2014-12-03 09:52:06 -0800 |
---|---|---|
committer | Eduardo Lima (Etrunko) <eduardo.lima@intel.com> | 2014-12-03 16:58:44 -0200 |
commit | 5a53e80a678849b25e3b0c64dc3b866694895d8f (patch) | |
tree | 25db68a90620ea32f96c3d5c1105b206d4386744 | |
parent | b35e643e82f577f9f639752f90aa81f426d23537 (diff) | |
download | weekeyboard-master.tar.gz weekeyboard-master.tar.bz2 weekeyboard-master.zip |
When the theme was changed, it added the signal callback
a new time causing the signal to be processed more than
once.
PTAP-49
Change-Id: I22ba3b8ae1a4d0f7507788d7419be8dd61f9314a
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
-rw-r--r-- | src/wkb-main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wkb-main.c b/src/wkb-main.c index 86464db..2201227 100644 --- a/src/wkb-main.c +++ b/src/wkb-main.c @@ -406,6 +406,7 @@ _wkb_ui_setup(struct weekeyboard *wkb) evas = ecore_evas_get(wkb->ee); wkb->edje_obj = edje_object_add(evas); + edje_object_signal_callback_add(wkb->edje_obj, "key_down", "*", _cb_wkb_on_key_down, wkb); } /* Bail out if theme did not change */ @@ -462,8 +463,6 @@ _wkb_ui_setup(struct weekeyboard *wkb) evas_object_size_hint_min_set(wkb->edje_obj, w, h); evas_object_size_hint_max_set(wkb->edje_obj, w, h); - edje_object_signal_callback_add(wkb->edje_obj, "key_down", "*", _cb_wkb_on_key_down, wkb); - /* * The keyboard surface is bigger than it appears so that we can show the * key pressed animation without requiring the use of subsurfaces. Here we |