efl_ui_spin_button: check focus state

Summary:
Because toggle_entry function control entry focus, it need to check
focus state in focus changed callback

Test Plan:
1. elementary_test - Efl.Ui.Spin.Button
2. Click the entry of spin_button

Reviewers: Jaehyun_Cho, CHAN

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5569
This commit is contained in:
Yeongjong Lee 2017-12-01 12:05:10 +09:00 committed by Jaehyun Cho
parent 769aeb5fcc
commit 9fac52134c
1 changed files with 6 additions and 4 deletions

View File

@ -494,9 +494,10 @@ _inc_dec_button_mouse_move_cb(void *data, const Efl_Event *event)
}
static void
_text_button_focus_changed_cb(void *data, const Efl_Event *event EINA_UNUSED)
_text_button_focus_changed_cb(void *data, const Efl_Event *event)
{
_toggle_entry(data);
if (efl_ui_focus_object_focus_get(event->object))
_toggle_entry(data);
}
static void
@ -506,9 +507,10 @@ _entry_activated_cb(void *data, const Efl_Event *event EINA_UNUSED)
}
static void
_entry_focus_changed_cb(void *data, const Efl_Event *event EINA_UNUSED)
_entry_focus_changed_cb(void *data, const Efl_Event *event)
{
_toggle_entry(data);
if (!efl_ui_focus_object_focus_get(event->object))
_toggle_entry(data);
}
static void