- Made it look clearer.
- Removed unnecessary local variables.
- Keep the code sequence consistent.
_elm_ctxpopup_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void)src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
-
- Evas_Event_Key_Down *ev = event_info;
-
Elm_Ctxpopup_Smart_Data *sd = _pd;
+ if (ret) *ret = EINA_FALSE;
+ (void)src;
+
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
_elm_multibuttonentry_smart_event(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void)src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- (void)type;
- void *event_info = va_arg(*list, void *);
- (void)event_info;
+ void *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void)src;
+ (void)type;
+ (void)ev;
// ACCESS
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) return;
static void
_elm_naviframe_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Evas_Object *source = va_arg(*list, Evas_Object *);
+ Evas_Object *src = va_arg(*list, Evas_Object *);
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
Evas_Event_Key_Down *ev = va_arg(*list, Evas_Event_Key_Down *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
Elm_Naviframe_Item *it;
- (void) source;
if (ret) *ret = EINA_FALSE;
- if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
+ (void)src;
+
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
+ if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if (strcmp(ev->key, "BackSpace")) return;
eo_do(obj, elm_obj_naviframe_top_item_get((Elm_Object_Item **)&it));
_elm_player_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
-
- Evas_Event_Key_Down *ev = event_info;
-
Elm_Player_Smart_Data *sd = _pd;
+ if (ret) *ret = EINA_FALSE;
+ (void) src;
+
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
_elm_popup_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void)src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
- Evas_Event_Key_Down *ev = event_info;
+ if (ret) *ret = EINA_FALSE;
+ (void)src;
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
_elm_button_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Evas_Event_Key_Down *ev = event_info;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
-
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
_elm_calendar_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
-
- Evas_Event_Key_Down *ev = event_info;
-
Elm_Calendar_Smart_Data *sd = _pd;
- if (type != EVAS_CALLBACK_KEY_DOWN) return;
+ if (ret) *ret = EINA_FALSE;
+ (void) src;
+
if (elm_widget_disabled_get(obj)) return;
+ if (type != EVAS_CALLBACK_KEY_DOWN) return;
if ((!strcmp(ev->key, "Prior")) ||
((!strcmp(ev->key, "KP_Prior")) && (!ev->string)))
_elm_check_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- Evas_Event_Key_Down *ev = event_info;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
-
if (type != EVAS_CALLBACK_KEY_DOWN) return;
-
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if ((strcmp(ev->key, "Return")) &&
static void
_elm_colorselector_smart_event(Eo *obj, void *_pd, va_list *list)
{
+ Evas_Object *src = va_arg(*list, Evas_Object *);
+ Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
+ Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Colorselector_Smart_Data *sd = _pd;
Eina_List *cl = NULL;
Elm_Color_Item *item = NULL;
char colorbar_s[128];
- Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
- Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
- Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
+ (void) src;
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- Evas_Event_Key_Down *ev = event_info;
- Elm_Colorselector_Smart_Data *sd = _pd;
-
- if (!sd) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- if (elm_widget_disabled_get(obj)) return;
+ if (!sd) return;
if (!sd->selected) sd->selected = sd->items;
if ((!strcmp(ev->key, "Left")) ||
_elm_diskselector_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
-
- Evas_Event_Key_Down *ev = event_info;
+ Elm_Diskselector_Smart_Data *sd = _pd;
Elm_Diskselector_Item *it = NULL;
Eina_List *l;
- Elm_Diskselector_Smart_Data *sd = _pd;
+ if (ret) *ret = EINA_FALSE;
+ (void) src;
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- if (elm_widget_disabled_get(obj)) return;
if (!sd->selected_item)
{
static void
_elm_flipselector_smart_event(Eo *obj, void *_pd, va_list *list)
{
- Evas_Event_Key_Down *ev;
- Eina_Bool is_up = EINA_TRUE;
-
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
-
Elm_Flipselector_Smart_Data *sd = _pd;
+ Eina_Bool is_up = EINA_TRUE;
- if (elm_widget_disabled_get(obj)) return;
+ if (ret) *ret = EINA_FALSE;
+ (void) src;
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
-
- ev = event_info;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if ((!strcmp(ev->key, "Down")) || (!strcmp(ev->key, "KP_Down")))
_elm_gengrid_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Gengrid_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
Evas_Coord x = 0;
Evas_Coord y = 0;
Evas_Coord page_x = 0;
Evas_Coord page_y = 0;
Elm_Object_Item *it = NULL;
- Evas_Event_Key_Down *ev = event_info;
-
- Elm_Gengrid_Smart_Data *sd = _pd;
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- if (!sd->items) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- if (elm_widget_disabled_get(obj)) return;
+ if (!sd->items) return;
eo_do(obj,
elm_scrollable_interface_content_pos_get(&x, &y),
_elm_genlist_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Genlist_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
Evas_Coord x = 0;
Evas_Coord y = 0;
Evas_Coord page_x = 0;
Evas_Coord page_y = 0;
Elm_Object_Item *it = NULL;
- Evas_Event_Key_Down *ev = event_info;
Evas_Coord pan_max_x = 0, pan_max_y = 0;
- Elm_Genlist_Smart_Data *sd = _pd;
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- if (!sd->items) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- if (elm_widget_disabled_get(obj)) return;
+ if (!sd->items) return;
eo_do(obj,
elm_scrollable_interface_content_pos_get(&x, &y),
_elm_list_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_List_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
Evas_Coord x = 0;
Evas_Coord y = 0;
Evas_Coord page_x = 0;
Evas_Coord page_y = 0;
Elm_List_Item *it = NULL;
- Evas_Event_Key_Down *ev = event_info;
-
- Elm_List_Smart_Data *sd = _pd;
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- if (!sd->items) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
+ if (!sd->items) return;
eo_do(obj,
elm_scrollable_interface_content_pos_get(&x, &y),
_elm_map_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Map_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
Evas_Coord vh;
Evas_Coord x, y;
- Evas_Event_Key_Down *ev = event_info;
Evas_Coord step_x, step_y, page_x, page_y;
- Elm_Map_Smart_Data *sd = _pd;
-
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
Evas_Object *src = va_arg(*list, Evas_Object *);
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
- Evas_Event_Key_Down *ev = event_info;
+ if (ret) *ret = EINA_FALSE;
if (elm_widget_disabled_get(obj)) return;
- if ((src != obj) || (type != EVAS_CALLBACK_KEY_DOWN)) return;
+ if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
+ if (src != obj) return;
if ((strcmp(ev->key, "Return")) &&
(strcmp(ev->key, "KP_Enter")) &&
_elm_photocam_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
double zoom;
Evas_Coord x = 0;
Evas_Coord step_y = 0;
Evas_Coord page_x = 0;
Evas_Coord page_y = 0;
- Evas_Event_Key_Down *ev = event_info;
if (elm_widget_disabled_get(obj)) return;
-
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
static void
_elm_radio_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Evas_Event_Key_Down *ev;
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
-
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- ev = event_info;
-
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if ((strcmp(ev->key, "Return")) &&
_elm_scroller_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Scroller_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
Evas_Coord x = 0;
Evas_Coord y = 0;
Evas_Coord page_y = 0;
Evas_Coord step_x = 0;
Evas_Coord step_y = 0;
- Evas_Event_Key_Down *ev = event_info;
-
- Elm_Scroller_Smart_Data *sd = _pd;
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
static void
_elm_slider_smart_event(Eo *obj, void *_pd, va_list *list)
{
- Evas_Event_Mouse_Wheel *mev;
- Evas_Event_Key_Down *ev;
-
- Elm_Slider_Smart_Data *sd = _pd;
-
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
void *event_info = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Slider_Smart_Data *sd = _pd;
+ Evas_Event_Mouse_Wheel *mev;
+ Evas_Event_Key_Down *ev;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
_elm_slideshow_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
- Evas_Event_Key_Down *ev = event_info;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
-
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
+
Eina_Bool horz = !!strncmp(elm_widget_style_get(obj), "vertical", 8);
if (elm_widget_disabled_get(obj)) return;
+ if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
+
if (type == EVAS_CALLBACK_KEY_DOWN)
{
- Evas_Event_Key_Down *ev = event_info;
-
- if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- else if (
- ( (!strcmp(ev->key, "Left") ||
+ if (( (!strcmp(ev->key, "Left") ||
((!strcmp(ev->key, "KP_Left")) && (!ev->string)))
&& horz )
||
}
else if (type == EVAS_CALLBACK_KEY_UP)
{
- Evas_Event_Key_Down *ev = event_info;
-
- if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if (!strcmp(ev->key, "Right") ||
((!strcmp(ev->key, "KP_Right")) && (!ev->string)) ||
!strcmp(ev->key, "Up") ||
static void
-_elm_toolbar_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
+_elm_toolbar_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- (void) type;
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+ Elm_Toolbar_Smart_Data *sd = _pd;
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
+ (void) type;
+
Elm_Toolbar_Item *it = NULL;
Evas_Coord x, y, w, h;
- ELM_TOOLBAR_DATA_GET(obj, sd);
-
- Evas_Event_Key_Down *ev = event_info;
-
if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
- if (!sd->items) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
+ if (!sd->items) return;
if ((!strcmp(ev->key, "Return")) ||
((!strcmp(ev->key, "KP_Enter")) && !ev->string))
_elm_video_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
#ifdef HAVE_EMOTION
- Evas_Event_Key_Down *ev = event_info;
-
+ if (elm_widget_disabled_get(obj)) return;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- if (elm_widget_disabled_get(obj)) return;
if ((!strcmp(ev->key, "Left")) ||
((!strcmp(ev->key, "KP_Left")) && (!ev->string)))
INF("keyname: '%s' not handled", ev->key);
#else
-
(void) obj;
(void) type;
- (void) event_info;
+ (void) ev;
#endif
}
_elm_web_smart_event(Eo *obj, void *_pd, va_list *list)
{
Evas_Object *src = va_arg(*list, Evas_Object *);
- (void) src;
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+
if (ret) *ret = EINA_FALSE;
+ (void) src;
#ifdef HAVE_ELEMENTARY_WEB
- Evas_Event_Key_Down *ev = event_info;
-
Elm_Web_Smart_Data *sd = _pd;
if (type != EVAS_CALLBACK_KEY_DOWN) return;
(void)obj;
(void)_pd;
(void)type;
- (void)event_info;
+ (void)ev;
#endif
}
static void
_elm_win_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
{
- Evas_Object *source = va_arg(*list, Evas_Object *);
- (void) source;
+ Evas_Object *src = va_arg(*list, Evas_Object *);
Evas_Callback_Type type = va_arg(*list, Evas_Callback_Type);
- void *event_info = va_arg(*list, void *);
+ Evas_Event_Key_Down *ev = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
- if (ret) *ret = EINA_FALSE;
- Evas_Event_Key_Down *ev = event_info;
+ if (ret) *ret = EINA_FALSE;
+ (void) src;
if (elm_widget_disabled_get(obj)) return;
-
- if (type != EVAS_CALLBACK_KEY_DOWN)
- return;
+ if (type != EVAS_CALLBACK_KEY_DOWN) return;
if ((!strcmp(ev->key, "Tab")) ||
(!strcmp(ev->key, "ISO_Left_Tab")))