Eo events: Migrate to the new eo event cb signature.
This commit is contained in:
parent
58857a657c
commit
1c72554acc
20
src/bin/ui.c
20
src/bin/ui.c
|
@ -256,10 +256,9 @@ _ui_select(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ui_key(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
_ui_key(void *data EINA_UNUSED, const Eo_Event *event)
|
||||||
const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
|
|
||||||
{
|
{
|
||||||
Evas_Event_Key_Down *ev = event_info;
|
Evas_Event_Key_Down *ev = event->event_info;
|
||||||
|
|
||||||
if (key_func)
|
if (key_func)
|
||||||
{
|
{
|
||||||
|
@ -290,10 +289,9 @@ static Evas_Coord down_x, down_y;
|
||||||
static int down_menu_sel = 0;
|
static int down_menu_sel = 0;
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ui_mouse_down(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
_ui_mouse_down(void *data EINA_UNUSED, const Eo_Event *event)
|
||||||
const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
|
|
||||||
{
|
{
|
||||||
Evas_Event_Mouse_Down *ev = event_info;
|
Evas_Event_Mouse_Down *ev = event->event_info;
|
||||||
|
|
||||||
if (ev->button != 1) return EINA_TRUE;
|
if (ev->button != 1) return EINA_TRUE;
|
||||||
if (menu_active)
|
if (menu_active)
|
||||||
|
@ -307,10 +305,9 @@ _ui_mouse_down(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ui_mouse_up(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
_ui_mouse_up(void *data EINA_UNUSED, const Eo_Event *event)
|
||||||
const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
|
|
||||||
{
|
{
|
||||||
Evas_Event_Mouse_Up *ev = event_info;
|
Evas_Event_Mouse_Up *ev = event->event_info;
|
||||||
|
|
||||||
if (ev->button != 1) return EINA_TRUE;
|
if (ev->button != 1) return EINA_TRUE;
|
||||||
if (menu_active)
|
if (menu_active)
|
||||||
|
@ -333,10 +330,9 @@ _ui_mouse_up(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ui_mouse_move(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
|
_ui_mouse_move(void *data EINA_UNUSED, const Eo_Event *event)
|
||||||
const Eo_Event_Description *desc EINA_UNUSED, void *event_info)
|
|
||||||
{
|
{
|
||||||
Evas_Event_Mouse_Move *ev = event_info;
|
Evas_Event_Mouse_Move *ev = event->event_info;
|
||||||
|
|
||||||
if (ev->buttons != 1) return EINA_TRUE;
|
if (ev->buttons != 1) return EINA_TRUE;
|
||||||
if (menu_active)
|
if (menu_active)
|
||||||
|
|
Loading…
Reference in New Issue