aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-10-28 23:06:14 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-10-28 23:30:12 +0900
commitd22076681b5b540a3187a82a4a7d0c9e9210bc3b (patch)
treec5721a8318c7db2a5b2eb57b386354527bf88c80 /legacy/elementary/src/lib/elm_win.c
parentEo: fix macros for table (diff)
downloadefl-d22076681b5b540a3187a82a4a7d0c9e9210bc3b.tar.gz
elm: Fixed formatting about smart_event check for code consistency.
- Made it look clearer. - Removed unnecessary local variables. - Keep the code sequence consistent.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index d1cc852ae4..5bfc452188 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1152,19 +1152,16 @@ _elm_win_smart_on_focus(Eo *obj, void *_pd, va_list *list)
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")))