From: Jihoon Kim Date: Sat, 16 Oct 2010 02:59:02 +0000 (+0900) Subject: code cleanup X-Git-Tag: origin~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2731aabe79c21ad48678a0ad3ac7cc686973330f;p=framework%2Fuifw%2Felementary.git code cleanup --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index bc34e8c..444287a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -5419,7 +5419,7 @@ elm_genlist_longpress_timeout_get(const Evas_Object *obj) static Eina_Bool _group_item_contract_moving_effect_timer_cb(void *data) { - Evas_Object *obj = (Evas_Object *)data; + Evas_Object *obj = (Evas_Object *)data; ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_gridbox.c b/src/lib/elm_gridbox.c index 917fbae..b4129d8 100644 --- a/src/lib/elm_gridbox.c +++ b/src/lib/elm_gridbox.c @@ -24,13 +24,13 @@ static void _del_hook(Evas_Object * obj); static void _sizing_eval(Evas_Object * obj, int mode); -static void _changed_size_hints(void *data, Evas * e, Evas_Object * obj, +static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info); -static void _changed_size_min(void *data, Evas * e, Evas_Object * obj, +static void _changed_size_min(void *data, Evas *e, Evas_Object *obj, void *event_info); -static void _sub_del(void *data, Evas_Object * obj, void *event_info); +static void _sub_del(void *data, Evas_Object *obj, void *event_info); -static void _show_event(void *data, Evas *e, Evas_Object * obj, void *event_info); +static void _show_event(void *data, Evas *e, Evas_Object *obj, void *event_info); static void _del_pre_hook(Evas_Object * obj) @@ -136,31 +136,31 @@ _sizing_eval(Evas_Object * obj, int mode) } static void -_changed_size_hints(void *data, Evas *e, Evas_Object * obj, void *event_info) +_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info) { _sizing_eval(data, 0); } static void -_changed_size_min(void *data, Evas *e, Evas_Object * obj, void *event_info) +_changed_size_min(void *data, Evas *e, Evas_Object *obj, void *event_info) { _sizing_eval(data, 0); } static void -_sub_del(void *data, Evas_Object * obj, void *event_info) +_sub_del(void *data, Evas_Object *obj, void *event_info) { _sizing_eval(obj, 1); } static void -_show_event(void *data, Evas *e, Evas_Object * obj, void *event_info) +_show_event(void *data, Evas *e, Evas_Object *obj, void *event_info) { _sizing_eval(data, 0); } static void -_freeze_on(void *data, Evas_Object * obj, void *event_info) +_freeze_on(void *data, Evas_Object *obj, void *event_info) { Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_picker.c b/src/lib/elm_picker.c index 5163b4f..b7f7745 100644 --- a/src/lib/elm_picker.c +++ b/src/lib/elm_picker.c @@ -293,12 +293,12 @@ _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info) if ((dur && dur > 1000) || (distance < 10 && distance > -10)) { if (wd->ani_lock) - { + { if ((int)evas_object_data_get(wd->base, "ani_cnt") < 0) evas_object_data_set(wd->base, "ani_cnt", (void *)-1); else evas_object_data_set(wd->base, "ani_cnt", (void *)1); - } + } return; } _flick(data, (float)distance / dur); diff --git a/src/lib/elm_searchbar.c b/src/lib/elm_searchbar.c index 456d2f1..06f3ea0 100644 --- a/src/lib/elm_searchbar.c +++ b/src/lib/elm_searchbar.c @@ -25,9 +25,9 @@ struct _Widget_Data static void _del_hook(Evas_Object *obj); static void _theme_hook(Evas_Object *obj); static void _sizing_eval(Evas_Object *obj); -static void _clicked(void *data, Evas_Object *obj, void *event_info); //const char *emission, const char *source); -static void _changed(void *data, Evas_Object *obj, void *event_info); //const char *emission, const char *source); -static void _cancel_clicked(void *data, Evas_Object *obj, void *event_info); //const char *emission, const char *source); +static void _clicked(void *data, Evas_Object *obj, void *event_info); +static void _changed(void *data, Evas_Object *obj, void *event_info); +static void _cancel_clicked(void *data, Evas_Object *obj, void *event_info); static void _del_hook(Evas_Object *obj) { @@ -67,7 +67,7 @@ static void _sizing_eval(Evas_Object *obj) evas_object_size_hint_max_set(obj, maxw, maxh); } -static void _clicked(void *data, Evas_Object *obj, void *event_info) //const char *emission, const char *source) +static void _clicked(void *data, Evas_Object *obj, void *event_info) { Widget_Data *wd = elm_widget_data_get(data); if (!wd) return; @@ -85,7 +85,7 @@ static void _clicked(void *data, Evas_Object *obj, void *event_info) //const cha evas_object_smart_callback_call(data, "clicked", NULL); } -static void _changed(void *data, Evas_Object *obj, void *event_info) //const char *emission, const char *source) +static void _changed(void *data, Evas_Object *obj, void *event_info) { Widget_Data *wd = elm_widget_data_get(data); @@ -95,7 +95,7 @@ static void _changed(void *data, Evas_Object *obj, void *event_info) //const cha // evas_object_smart_callback_call(data, "changed", NULL); } -static void _cancel_clicked(void *data, Evas_Object *obj, void *event_info) //const char *emission, const char *source) +static void _cancel_clicked(void *data, Evas_Object *obj, void *event_info) { Widget_Data *wd = elm_widget_data_get(data); if (!wd) return;