From 30dba546103f66e1f815bc5728c31938326cff68 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 1 Oct 2012 07:36:27 +0000 Subject: [PATCH] elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE). SVN revision: 77244 --- legacy/elementary/src/lib/elc_fileselector.c | 2 +- legacy/elementary/src/lib/elc_hoversel.c | 4 +- .../elementary/src/lib/elc_multibuttonentry.c | 32 +++---- legacy/elementary/src/lib/elc_naviframe.c | 8 +- legacy/elementary/src/lib/elc_popup.c | 6 +- legacy/elementary/src/lib/elm_box.c | 14 +-- legacy/elementary/src/lib/elm_calendar.c | 2 +- legacy/elementary/src/lib/elm_colorselector.c | 10 +-- legacy/elementary/src/lib/elm_dayselector.c | 14 +-- legacy/elementary/src/lib/elm_diskselector.c | 34 ++++---- legacy/elementary/src/lib/elm_entry.c | 16 ++-- legacy/elementary/src/lib/elm_flipselector.c | 14 +-- legacy/elementary/src/lib/elm_gengrid.c | 20 ++--- legacy/elementary/src/lib/elm_genlist.c | 86 +++++++++---------- legacy/elementary/src/lib/elm_gesture_layer.c | 16 ++-- legacy/elementary/src/lib/elm_grid.c | 2 +- legacy/elementary/src/lib/elm_icon.c | 4 +- legacy/elementary/src/lib/elm_index.c | 18 ++-- legacy/elementary/src/lib/elm_layout.c | 28 +++--- legacy/elementary/src/lib/elm_list.c | 18 ++-- legacy/elementary/src/lib/elm_map.c | 68 +++++++-------- legacy/elementary/src/lib/elm_menu.c | 30 +++---- legacy/elementary/src/lib/elm_panel.c | 2 +- legacy/elementary/src/lib/elm_photocam.c | 10 +-- legacy/elementary/src/lib/elm_radio.c | 4 +- legacy/elementary/src/lib/elm_route.c | 4 +- legacy/elementary/src/lib/elm_scroller.c | 2 +- .../elementary/src/lib/elm_segment_control.c | 6 +- legacy/elementary/src/lib/elm_spinner.c | 2 +- legacy/elementary/src/lib/elm_thumb.c | 2 +- legacy/elementary/src/lib/elm_web.c | 6 +- legacy/elementary/src/lib/elm_widget.c | 58 ++++++------- 32 files changed, 271 insertions(+), 271 deletions(-) diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c index 41bbdeca95..bbbec7e712 100644 --- a/legacy/elementary/src/lib/elc_fileselector.c +++ b/legacy/elementary/src/lib/elc_fileselector.c @@ -442,7 +442,7 @@ _populate(Evas_Object *obj, } if (sd->filename_entry) elm_object_text_set(sd->filename_entry, ""); - EINA_ITERATOR_FOREACH (it, file) + EINA_ITERATOR_FOREACH(it, file) { const char *filename; diff --git a/legacy/elementary/src/lib/elc_hoversel.c b/legacy/elementary/src/lib/elc_hoversel.c index 7376c4e09d..3a2cf11a64 100644 --- a/legacy/elementary/src/lib/elc_hoversel.c +++ b/legacy/elementary/src/lib/elc_hoversel.c @@ -118,7 +118,7 @@ _activate(Evas_Object *obj) snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s", elm_widget_style_get(obj)); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { bt = elm_button_add(bx); elm_widget_mirrored_automatic_set(bt, EINA_FALSE); @@ -374,7 +374,7 @@ elm_hoversel_clear(Evas_Object *obj) ELM_HOVERSEL_CHECK(obj); ELM_HOVERSEL_DATA_GET(obj, sd); - EINA_LIST_FOREACH_SAFE (sd->items, l, ll, it) + EINA_LIST_FOREACH_SAFE(sd->items, l, ll, it) { elm_widget_item_del(it); } diff --git a/legacy/elementary/src/lib/elc_multibuttonentry.c b/legacy/elementary/src/lib/elc_multibuttonentry.c index a891a841e3..314aaa0966 100644 --- a/legacy/elementary/src/lib/elc_multibuttonentry.c +++ b/legacy/elementary/src/lib/elc_multibuttonentry.c @@ -48,7 +48,7 @@ _elm_multibuttonentry_smart_theme(Evas_Object *obj) if (!ELM_WIDGET_CLASS(_elm_multibuttonentry_parent_sc)->theme(obj)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { if (item->button) elm_widget_theme_object_set @@ -131,7 +131,7 @@ _shrink_mode_set(Evas_Object *obj, elm_box_padding_get(sd->box, &box_inner_item_width_padding, NULL); // unpack all items and entry elm_box_unpack_all(sd->box); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { evas_object_hide(item->button); item->visible = EINA_FALSE; @@ -164,7 +164,7 @@ _shrink_mode_set(Evas_Object *obj, */ } - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { int w_label_count = 0; char buf[MAX_STR]; @@ -255,7 +255,7 @@ _shrink_mode_set(Evas_Object *obj, { // unpack all items and entry elm_box_unpack_all(sd->box); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { evas_object_hide(item->button); item->visible = EINA_FALSE; @@ -270,7 +270,7 @@ _shrink_mode_set(Evas_Object *obj, // pack remain btns item = NULL; - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { elm_box_pack_end(sd->box, item->button); evas_object_show(item->button); @@ -364,7 +364,7 @@ _button_item_del(Elm_Multibuttonentry_Item *item) ELM_MULTIBUTTONENTRY_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it == item) { @@ -432,7 +432,7 @@ _current_button_change(Evas_Object *obj, _current_button_state_change(obj, MULTIBUTTONENTRY_BUTTON_STATE_DEFAULT); // change the current - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { if (item->button == btn) { @@ -583,7 +583,7 @@ _button_item_add(Evas_Object *obj, if (!str) return NULL; - EINA_LIST_FOREACH (sd->filter_list, l, item_filter) + EINA_LIST_FOREACH(sd->filter_list, l, item_filter) { if (!(item_filter->callback_func(obj, str, data, item_filter->data))) return NULL; @@ -1097,7 +1097,7 @@ _box_min_size_calculate(Evas_Object *box, evas_object_geometry_get(box, NULL, NULL, &w, NULL); evas_object_size_hint_min_get(box, &minw, NULL); - EINA_LIST_FOREACH (priv->children, l, opt) + EINA_LIST_FOREACH(priv->children, l, opt) { evas_object_size_hint_min_get(opt->obj, &mnw, &mnh); evas_object_size_hint_weight_get(opt->obj, &wx, NULL); @@ -1139,7 +1139,7 @@ _item_max_height_calculate(Evas_Object *box, evas_object_geometry_get(box, NULL, NULL, &w, NULL); - EINA_LIST_FOREACH (priv->children, l, opt) + EINA_LIST_FOREACH(priv->children, l, opt) { evas_object_size_hint_min_get(opt->obj, &mnw, &mnh); evas_object_size_hint_weight_get(opt->obj, &wx, NULL); @@ -1206,7 +1206,7 @@ _box_layout_cb(Evas_Object *o, sd->guide_text_vis_enable = EINA_FALSE; - EINA_LIST_FOREACH (priv->children, l, opt) + EINA_LIST_FOREACH(priv->children, l, opt) { Evas_Coord mnw, mnh, mxw, mxh; Evas_Coord ww, hh, ow, oh; @@ -1663,7 +1663,7 @@ elm_multibuttonentry_item_prev_get(const Elm_Object_Item *it) ELM_MULTIBUTTONENTRY_ITEM_CHECK_OR_RETURN(it, NULL); ELM_MULTIBUTTONENTRY_DATA_GET(WIDGET(it), sd); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { if (item == (Elm_Multibuttonentry_Item *)it) { @@ -1684,7 +1684,7 @@ elm_multibuttonentry_item_next_get(const Elm_Object_Item *it) ELM_MULTIBUTTONENTRY_ITEM_CHECK_OR_RETURN(it, NULL); ELM_MULTIBUTTONENTRY_DATA_GET(WIDGET(it), sd); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { if (item == (Elm_Multibuttonentry_Item *)it) { @@ -1726,7 +1726,7 @@ elm_multibuttonentry_item_filter_append(Evas_Object *obj, new_item_filter = _filter_new(func, data); if (!new_item_filter) return; - EINA_LIST_FOREACH (sd->filter_list, l, _item_filter) + EINA_LIST_FOREACH(sd->filter_list, l, _item_filter) { if (_item_filter && ((_item_filter->callback_func == func) && (_item_filter->data == data))) @@ -1754,7 +1754,7 @@ elm_multibuttonentry_item_filter_prepend(Evas_Object *obj, new_item_filter = _filter_new(func, data); if (!new_item_filter) return; - EINA_LIST_FOREACH (sd->filter_list, l, _item_filter) + EINA_LIST_FOREACH(sd->filter_list, l, _item_filter) { if (_item_filter && ((_item_filter->callback_func == func) && (_item_filter->data == data))) @@ -1778,7 +1778,7 @@ elm_multibuttonentry_item_filter_remove(Evas_Object *obj, EINA_SAFETY_ON_NULL_RETURN(func); - EINA_LIST_FOREACH (sd->filter_list, l, item_filter) + EINA_LIST_FOREACH(sd->filter_list, l, item_filter) { if ((item_filter->callback_func == func) && ((!data) || (item_filter->data == data))) diff --git a/legacy/elementary/src/lib/elc_naviframe.c b/legacy/elementary/src/lib/elc_naviframe.c index d835e7d807..5b20b4a87d 100644 --- a/legacy/elementary/src/lib/elc_naviframe.c +++ b/legacy/elementary/src/lib/elc_naviframe.c @@ -221,7 +221,7 @@ _elm_naviframe_smart_theme(Evas_Object *obj) if (!ELM_WIDGET_CLASS(_elm_naviframe_parent_sc)->theme(obj)) return EINA_FALSE; - EINA_INLIST_FOREACH (sd->stack, it) + EINA_INLIST_FOREACH(sd->stack, it) { _item_style_set(it, it->style); _item_title_visible_update(it); @@ -708,7 +708,7 @@ _elm_naviframe_smart_sizing_eval(Evas_Object *obj) ELM_NAVIFRAME_DATA_GET(obj, sd); evas_object_geometry_get(obj, &x, &y, &w, &h); - EINA_INLIST_FOREACH (sd->stack, it) + EINA_INLIST_FOREACH(sd->stack, it) { evas_object_move(VIEW(it), x, y); evas_object_resize(VIEW(it), w, h); @@ -1504,7 +1504,7 @@ elm_naviframe_item_simple_promote(Evas_Object *obj, ELM_NAVIFRAME_CHECK(obj); ELM_NAVIFRAME_DATA_GET(obj, sd); - EINA_INLIST_FOREACH (sd->stack, itr) + EINA_INLIST_FOREACH(sd->stack, itr) { if (elm_object_item_content_get((Elm_Object_Item *)itr) == content) { @@ -1635,7 +1635,7 @@ elm_naviframe_items_get(const Evas_Object *obj) ELM_NAVIFRAME_CHECK(obj) NULL; ELM_NAVIFRAME_DATA_GET(obj, sd); - EINA_INLIST_FOREACH (sd->stack, itr) + EINA_INLIST_FOREACH(sd->stack, itr) ret = eina_list_append(ret, itr); return ret; diff --git a/legacy/elementary/src/lib/elc_popup.c b/legacy/elementary/src/lib/elc_popup.c index 1a49e55d32..4b69c2050c 100644 --- a/legacy/elementary/src/lib/elc_popup.c +++ b/legacy/elementary/src/lib/elc_popup.c @@ -201,7 +201,7 @@ _mirrored_set(Evas_Object *obj, elm_object_mirrored_set(sd->notify, rtl); if (sd->items) - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) edje_object_mirrored_set(VIEW(item), rtl); } @@ -242,7 +242,7 @@ _elm_popup_smart_theme(Evas_Object *obj) } else if (sd->items) { - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) { elm_widget_theme_object_set (obj, VIEW(item), "popup", "item", elm_widget_style_get(obj)); @@ -302,7 +302,7 @@ _elm_popup_smart_sizing_eval(Evas_Object *obj) if (sd->items) { - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) { _item_sizing_eval(item); evas_object_size_hint_min_get(VIEW(item), NULL, &minh_box); diff --git a/legacy/elementary/src/lib/elm_box.c b/legacy/elementary/src/lib/elm_box.c index 9d81a1a9fc..b65a81f4c0 100644 --- a/legacy/elementary/src/lib/elm_box.c +++ b/legacy/elementary/src/lib/elm_box.c @@ -203,7 +203,7 @@ _transition_layout_child_removed(void *data, Transition_Animation_Data *tad; Elm_Box_Transition *layout_data = data; - EINA_LIST_FOREACH (layout_data->objs, l, tad) + EINA_LIST_FOREACH(layout_data->objs, l, tad) { if (tad->obj == event_info) { @@ -241,7 +241,7 @@ _transition_layout_calculate_coords(Evas_Object *obj, layout_data->initial_time = curtime; evas_object_geometry_get(obj, &x, &y, &w, &h); - EINA_LIST_FOREACH (layout_data->objs, l, tad) + EINA_LIST_FOREACH(layout_data->objs, l, tad) { evas_object_geometry_get(tad->obj, &tad->start.x, &tad->start.y, &tad->start.w, &tad->start.h); @@ -249,7 +249,7 @@ _transition_layout_calculate_coords(Evas_Object *obj, tad->start.y = tad->start.y - y; } layout_data->end.layout(obj, priv, layout_data->end.data); - EINA_LIST_FOREACH (layout_data->objs, l, tad) + EINA_LIST_FOREACH(layout_data->objs, l, tad) { evas_object_geometry_get(tad->obj, &tad->end.x, &tad->end.y, &tad->end.w, &tad->end.h); @@ -269,7 +269,7 @@ _transition_layout_load_children_list(Evas_Object_Box_Data *priv, EINA_LIST_FREE (layout_data->objs, tad) free(tad); - EINA_LIST_FOREACH (priv->children, l, opt) + EINA_LIST_FOREACH(priv->children, l, opt) { tad = calloc(1, sizeof(Transition_Animation_Data)); if (!tad) @@ -347,7 +347,7 @@ _transition_layout_animation_exec(Evas_Object *obj, progress = (curtime - layout_data->initial_time) / layout_data->duration; evas_object_geometry_get(obj, &x, &y, &w, &h); - EINA_LIST_FOREACH (layout_data->objs, l, tad) + EINA_LIST_FOREACH(layout_data->objs, l, tad) { cur_x = x + tad->start.x + ((tad->end.x - tad->start.x) * progress); cur_y = y + tad->start.y + ((tad->end.y - tad->start.y) * progress); @@ -401,7 +401,7 @@ _elm_box_smart_del(Evas_Object *obj) /* let's make our box object the *last* to be processed, since it * may (smart) parent other sub objects here */ - EINA_LIST_FOREACH (ELM_WIDGET_DATA(sd)->subobjs, l, child) + EINA_LIST_FOREACH(ELM_WIDGET_DATA(sd)->subobjs, l, child) { if (child == ELM_WIDGET_DATA(sd)->resize_obj) { @@ -579,7 +579,7 @@ elm_box_unpack_all(Evas_Object *obj) ELM_BOX_DATA_GET(obj, sd); bd = evas_object_smart_data_get(ELM_WIDGET_DATA(sd)->resize_obj); - EINA_LIST_FOREACH (bd->children, l, opt) + EINA_LIST_FOREACH(bd->children, l, opt) elm_widget_sub_object_del(obj, opt->obj); /* EINA_FALSE means to delete objects as well */ diff --git a/legacy/elementary/src/lib/elm_calendar.c b/legacy/elementary/src/lib/elm_calendar.c index a33c098930..f3fd661b38 100644 --- a/legacy/elementary/src/lib/elm_calendar.c +++ b/legacy/elementary/src/lib/elm_calendar.c @@ -406,7 +406,7 @@ _populate(Evas_Object *obj) _access_calendar_item_register(obj); /* Set marks */ - EINA_LIST_FOREACH (sd->marks, l, mark) + EINA_LIST_FOREACH(sd->marks, l, mark) { struct tm *mtime = &mark->mark_time; int month = sd->shown_time.tm_mon; diff --git a/legacy/elementary/src/lib/elm_colorselector.c b/legacy/elementary/src/lib/elm_colorselector.c index f30af765e7..c46c1c2996 100644 --- a/legacy/elementary/src/lib/elm_colorselector.c +++ b/legacy/elementary/src/lib/elm_colorselector.c @@ -647,7 +647,7 @@ _elm_colorselector_smart_theme(Evas_Object *obj) (h_pad * elm_widget_scale_get(obj) * elm_config_scale_get()), (v_pad * elm_widget_scale_get(obj) * elm_config_scale_get())); - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) { elm_layout_theme_set (VIEW(item), "colorselector", "item", elm_widget_style_get(obj)); @@ -721,7 +721,7 @@ _palette_sizing_eval(Evas_Object *obj) ELM_COLORSELECTOR_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) _item_sizing_eval(item); } @@ -857,7 +857,7 @@ _on_color_released(void *data, (WIDGET(item), item->color->r, item->color->g, item->color->b, item->color->a); } - EINA_LIST_FOREACH (sd->items, l, temp_item) + EINA_LIST_FOREACH(sd->items, l, temp_item) if (item == temp_item) sd->selected = l; sd->focused = ELM_COLORSELECTOR_PALETTE; } @@ -953,7 +953,7 @@ _colors_save(Evas_Object *obj) ELM_COLORSELECTOR_DATA_GET(obj, sd); _elm_config_colors_free(sd->palette_name); - EINA_LIST_FOREACH (sd->items, elist, item) + EINA_LIST_FOREACH(sd->items, elist, item) _elm_config_color_set(sd->palette_name, item->color->r, item->color->g, item->color->b, item->color->a); } @@ -971,7 +971,7 @@ _palette_colors_load(Evas_Object *obj) color_list = _elm_config_color_list_get(sd->palette_name); if (!color_list) return; - EINA_LIST_FOREACH (color_list, elist, color) + EINA_LIST_FOREACH(color_list, elist, color) { item = _item_new(obj); if (!item) return; diff --git a/legacy/elementary/src/lib/elm_dayselector.c b/legacy/elementary/src/lib/elm_dayselector.c index a4ac870aac..e2df5e39c4 100644 --- a/legacy/elementary/src/lib/elm_dayselector.c +++ b/legacy/elementary/src/lib/elm_dayselector.c @@ -61,7 +61,7 @@ _elm_dayselector_smart_translate(Evas_Object *obj) t = time(NULL); localtime_r(&t, &time_daysel); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { time_daysel.tm_wday = it->day; strftime(buf, sizeof(buf), "%a", &time_daysel); @@ -88,7 +88,7 @@ _update_items(Evas_Object *obj) last_day = last_day % ELM_DAYSELECTOR_MAX; rtl = elm_widget_mirrored_get(obj); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { elm_object_signal_emit(VIEW(it), it->day_style, ""); if (it->day == sd->week_start) @@ -126,7 +126,7 @@ _elm_dayselector_smart_theme(Evas_Object *obj) if (!ELM_WIDGET_CLASS(_elm_dayselector_parent_sc)->theme(obj)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { snprintf (buf, sizeof(buf), "dayselector/%s", elm_object_style_get(obj)); @@ -155,7 +155,7 @@ _item_del_cb(void *data, ELM_DAYSELECTOR_DATA_GET(data, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (obj == VIEW(it)) { @@ -204,7 +204,7 @@ _item_find(const Evas_Object *obj, ELM_DAYSELECTOR_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) if (day == it->day) return it; return NULL; @@ -344,7 +344,7 @@ _items_style_set(Evas_Object *obj) if (weekend_last >= ELM_DAYSELECTOR_MAX) weekend_last = weekend_last % ELM_DAYSELECTOR_MAX; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (weekend_last >= sd->weekend_start) { @@ -523,7 +523,7 @@ elm_dayselector_week_start_set(Evas_Object *obj, /* just shuffling items, so swalling them directly */ sd->week_start = day; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { snprintf(buf, sizeof(buf), "day%d", _item_location_get(sd, it)); edje_object_part_swallow diff --git a/legacy/elementary/src/lib/elm_diskselector.c b/legacy/elementary/src/lib/elm_diskselector.c index a769a07468..eb198b2b0c 100644 --- a/legacy/elementary/src/lib/elm_diskselector.c +++ b/legacy/elementary/src/lib/elm_diskselector.c @@ -51,7 +51,7 @@ _selected_item_indicate(Elm_Diskselector_Item *it) if (!it->label) return; - EINA_LIST_FOREACH (sd->r_items, l, item) + EINA_LIST_FOREACH(sd->r_items, l, item) { if (item->label && !strcmp(item->label, it->label)) edje_object_signal_emit(VIEW(item), "elm,state,selected", "elm"); @@ -139,7 +139,7 @@ _string_check(void *data) else list = sd->r_items; - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) { Evas_Coord x, w; int len; @@ -221,7 +221,7 @@ _scroller_move(void *data) list = sd->r_items; } - EINA_LIST_FOREACH (list, l, dit) + EINA_LIST_FOREACH(list, l, dit) { if (sd->selected_item == dit) break; @@ -343,10 +343,10 @@ _item_del_pre_hook(Elm_Object_Item *it) evas_object_hide(sd->VIEW(last)); evas_object_hide(sd->VIEW(s_last)); - EINA_LIST_FOREACH (sd->under_items, l, item2) + EINA_LIST_FOREACH(sd->under_items, l, item2) evas_object_hide(VIEW(item2)); - EINA_LIST_FOREACH (sd->over_items, l, item2) + EINA_LIST_FOREACH(sd->over_items, l, item2) evas_object_hide(VIEW(item2)); } else @@ -471,7 +471,7 @@ _identical_item_check(Elm_Diskselector_Item *it, if (sd->round) { // Get index from indentical item from round items - EINA_LIST_FOREACH (sd->r_items, l, dit) + EINA_LIST_FOREACH(sd->r_items, l, dit) { if (it == dit) break; idx++; @@ -676,7 +676,7 @@ _elm_diskselector_smart_theme(Evas_Object *obj) if (sd->round) { - EINA_LIST_FOREACH (sd->r_items, l, it) + EINA_LIST_FOREACH(sd->r_items, l, it) { elm_widget_theme_object_set(obj, VIEW(it), "diskselector", "item", elm_widget_style_get(obj)); @@ -686,7 +686,7 @@ _elm_diskselector_smart_theme(Evas_Object *obj) } else { - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { elm_widget_theme_object_set(obj, VIEW(it), "diskselector", "item", elm_widget_style_get(obj)); @@ -716,7 +716,7 @@ _elm_diskselector_smart_sub_object_del(Evas_Object *obj, (obj, sobj)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (sobj == it->icon) { @@ -763,7 +763,7 @@ _elm_diskselector_smart_focus_next(const Evas_Object *obj, ELM_DISKSELECTOR_CHECK(obj) EINA_FALSE; ELM_DISKSELECTOR_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, elist, it) + EINA_LIST_FOREACH(sd->items, elist, it) items = eina_list_append(items, it->base.access_obj); if (!sd->round) @@ -916,7 +916,7 @@ _scroll_animate_stop_cb(Evas_Object *obj, list = sd->r_items; evas_object_geometry_get(obj, &ox, NULL, &ow, NULL); - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) { evas_object_geometry_get(VIEW(it), &x, NULL, &w, NULL); if (abs((int)(ox + (ow / 2)) - (int)(x + (w / 2))) < 10) break; @@ -978,13 +978,13 @@ _round_items_del(Elm_Diskselector_Smart_Data *sd) _round_item_del(sd, sd->first); sd->first = NULL; - EINA_LIST_FOREACH (sd->under_items, l, it) + EINA_LIST_FOREACH(sd->under_items, l, it) { _round_item_del(sd, it); } sd->under_items = eina_list_free(sd->under_items); - EINA_LIST_FOREACH (sd->over_items, l, it) + EINA_LIST_FOREACH(sd->over_items, l, it) { _round_item_del(sd, it); } @@ -1221,7 +1221,7 @@ _elm_diskselector_smart_del(Evas_Object *obj) free(sd->first); } - EINA_LIST_FOREACH (sd->under_items, l, it) + EINA_LIST_FOREACH(sd->under_items, l, it) { if (it) { @@ -1231,7 +1231,7 @@ _elm_diskselector_smart_del(Evas_Object *obj) } } - EINA_LIST_FOREACH (sd->over_items, l, it) + EINA_LIST_FOREACH(sd->over_items, l, it) { if (it) { @@ -1408,7 +1408,7 @@ elm_diskselector_round_enabled_set(Evas_Object *obj, elm_box_pack_start(sd->main_box, sd->VIEW(s_last)); // if more than 3 items should be displayed - EINA_LIST_FOREACH (sd->under_items, elist, it) + EINA_LIST_FOREACH(sd->under_items, elist, it) elm_box_pack_start(sd->main_box, VIEW(it)); if (sd->first) @@ -1417,7 +1417,7 @@ elm_diskselector_round_enabled_set(Evas_Object *obj, elm_box_pack_end(sd->main_box, sd->VIEW(second)); // if more than 3 items should be displayed - EINA_LIST_FOREACH (sd->over_items, elist, it) + EINA_LIST_FOREACH(sd->over_items, elist, it) elm_box_pack_end(sd->main_box, VIEW(it)); } else diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 61444a5fac..ab6737eb7a 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -1279,7 +1279,7 @@ _menu_call(Evas_Object *obj) } } - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { elm_hoversel_item_add(sd->hoversel, it->label, it->icon_file, it->icon_type, _hover_item_clicked_cb, it); @@ -1537,7 +1537,7 @@ _entry_selection_start_signal_cb(void *data, ELM_ENTRY_DATA_GET(data, sd); if (!elm_object_focus_get(data)) elm_object_focus_set(data, EINA_TRUE); - EINA_LIST_FOREACH (entries, l, entry) + EINA_LIST_FOREACH(entries, l, entry) { if (entry != data) elm_entry_select_none(entry); } @@ -1726,7 +1726,7 @@ _signal_anchor_geoms_do_things_with_lol(Elm_Entry_Smart_Data *sd, evas_pointer_canvas_xy_get (evas_object_evas_get(sd->entry_edje), &px, &py); - EINA_LIST_FOREACH (geoms, l, r) + EINA_LIST_FOREACH(geoms, l, r) { if (((r->x + x) <= px) && ((r->y + y) <= py) && ((r->x + x + r->w) > px) && ((r->y + y + r->h) > py)) @@ -2130,7 +2130,7 @@ _item_get(void *data, ELM_ENTRY_DATA_GET(data, sd); - EINA_LIST_FOREACH (sd->item_providers, l, ip) + EINA_LIST_FOREACH(sd->item_providers, l, ip) { o = ip->func(ip->data, data, item); if (o) return o; @@ -2179,7 +2179,7 @@ _text_filter_cb(void *data, if (type == EDJE_TEXT_FILTER_FORMAT) return; - EINA_LIST_FOREACH (sd->text_filters, l, tf) + EINA_LIST_FOREACH(sd->text_filters, l, tf) { tf->func(tf->data, data, text); if (!*text) @@ -2198,7 +2198,7 @@ _markup_filter_cb(void *data, ELM_ENTRY_DATA_GET(data, sd); - EINA_LIST_FOREACH (sd->markup_filters, l, tf) + EINA_LIST_FOREACH(sd->markup_filters, l, tf) { tf->func(tf->data, data, text); if (!*text) @@ -3731,7 +3731,7 @@ elm_entry_item_provider_remove(Evas_Object *obj, ELM_ENTRY_DATA_GET(obj, sd); EINA_SAFETY_ON_NULL_RETURN(func); - EINA_LIST_FOREACH (sd->item_providers, l, ip) + EINA_LIST_FOREACH(sd->item_providers, l, ip) { if ((ip->func == func) && ((!data) || (ip->data == data))) { @@ -3788,7 +3788,7 @@ elm_entry_markup_filter_remove(Evas_Object *obj, ELM_ENTRY_DATA_GET(obj, sd); EINA_SAFETY_ON_NULL_RETURN(func); - EINA_LIST_FOREACH (sd->markup_filters, l, tf) + EINA_LIST_FOREACH(sd->markup_filters, l, tf) { if ((tf->func == func) && ((!data) || (tf->data == data))) { diff --git a/legacy/elementary/src/lib/elm_flipselector.c b/legacy/elementary/src/lib/elm_flipselector.c index f08ea2126c..1a03b9ef46 100644 --- a/legacy/elementary/src/lib/elm_flipselector.c +++ b/legacy/elementary/src/lib/elm_flipselector.c @@ -177,7 +177,7 @@ _sentinel_eval(Elm_Flipselector_Smart_Data *sd) sd->sentinel = sd->items; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (strlen(elm_object_item_text_get((Elm_Object_Item *)it)) > strlen(elm_object_item_text_get(DATA_GET(sd->sentinel)))) @@ -196,7 +196,7 @@ _flipselector_process_deletions(Elm_Flipselector_Smart_Data *sd) sd->walking++; /* avoid nested deletions */ - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (!it->deleted) continue; @@ -290,7 +290,7 @@ _item_del_pre_hook(Elm_Object_Item *it) _flipselector_walk(sd); - EINA_LIST_FOREACH (sd->items, l, item2) + EINA_LIST_FOREACH(sd->items, l, item2) { if (item2 == item) { @@ -751,7 +751,7 @@ elm_flipselector_first_item_get(const Evas_Object *obj) if (!sd->items) return NULL; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->deleted) continue; return (Elm_Object_Item *)it; @@ -771,7 +771,7 @@ elm_flipselector_last_item_get(const Evas_Object *obj) if (!sd->items) return NULL; - EINA_LIST_REVERSE_FOREACH (sd->items, l, it) + EINA_LIST_REVERSE_FOREACH(sd->items, l, it) { if (it->deleted) continue; return (Elm_Object_Item *)it; @@ -809,7 +809,7 @@ elm_flipselector_item_selected_set(Elm_Object_Item *it, if ((!selected) && (cur == item)) { - EINA_LIST_FOREACH (sd->items, l, _item) + EINA_LIST_FOREACH(sd->items, l, _item) { if (!_item->deleted) { @@ -822,7 +822,7 @@ elm_flipselector_item_selected_set(Elm_Object_Item *it, return; } - EINA_LIST_FOREACH (sd->items, l, _item) + EINA_LIST_FOREACH(sd->items, l, _item) { if (_item == cur) flipside = MSG_FLIP_DOWN; diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c index d4178181c4..75ba995713 100644 --- a/legacy/elementary/src/lib/elm_gengrid.c +++ b/legacy/elementary/src/lib/elm_gengrid.c @@ -108,7 +108,7 @@ _calc_job(void *data) if (nmax < 1) nmax = 1; - EINA_INLIST_FOREACH (sd->items, it) + EINA_INLIST_FOREACH(sd->items, it) { if (GG_IT(it)->prev_group != count_group) GG_IT(it)->prev_group = count_group; @@ -552,7 +552,7 @@ _item_mouse_up_cb(void *data, const Eina_List *l, *l_next; Elm_Gen_Item *item2; - EINA_LIST_FOREACH_SAFE (sd->selected, l, l_next, item2) + EINA_LIST_FOREACH_SAFE(sd->selected, l, l_next, item2) if (item2 != it) _item_unselect(item2); } _item_highlight(it); @@ -687,7 +687,7 @@ _item_realize(Elm_Gen_Item *it) it->texts = elm_widget_stringlist_get(edje_object_data_get(VIEW(it), "texts")); - EINA_LIST_FOREACH (it->texts, l, key) + EINA_LIST_FOREACH(it->texts, l, key) { char *s = it->itc->func.text_get ((void *)it->base.data, WIDGET(it), key); @@ -707,7 +707,7 @@ _item_realize(Elm_Gen_Item *it) it->contents = elm_widget_stringlist_get (edje_object_data_get(VIEW(it), "contents")); - EINA_LIST_FOREACH (it->contents, l, key) + EINA_LIST_FOREACH(it->contents, l, key) { if (it->itc->func.content_get) ic = it->itc->func.content_get @@ -729,7 +729,7 @@ _item_realize(Elm_Gen_Item *it) it->states = elm_widget_stringlist_get(edje_object_data_get(VIEW(it), "states")); - EINA_LIST_FOREACH (it->states, l, key) + EINA_LIST_FOREACH(it->states, l, key) { Eina_Bool on = it->itc->func.state_get ((void *)it->base.data, WIDGET(it), l->data); @@ -1211,7 +1211,7 @@ _group_item_place(Elm_Gengrid_Pan_Smart_Data *psd) iw = vw; ih = psd->wsd->group_item_height; } - EINA_LIST_FOREACH (psd->wsd->group_items, l, it) + EINA_LIST_FOREACH(psd->wsd->group_items, l, it) { was_realized = it->realized; if (GG_IT(it)->group_realized) @@ -1242,7 +1242,7 @@ _elm_gengrid_pan_smart_calculate(Evas_Object *obj) psd->wsd->reorder_item_changed = EINA_FALSE; - EINA_INLIST_FOREACH (psd->wsd->items, it) + EINA_INLIST_FOREACH(psd->wsd->items, it) { if (it->group) { @@ -1873,7 +1873,7 @@ _item_position_update(Eina_Inlist *list, { Elm_Gen_Item *it; - EINA_INLIST_FOREACH (list, it) + EINA_INLIST_FOREACH(list, it) { it->position = idx++; it->position_update = EINA_TRUE; @@ -2879,7 +2879,7 @@ elm_gengrid_realized_items_get(const Evas_Object *obj) ELM_GENGRID_CHECK(obj) NULL; ELM_GENGRID_DATA_GET(obj, sd); - EINA_INLIST_FOREACH (sd->items, it) + EINA_INLIST_FOREACH(sd->items, it) { if (it->realized) list = eina_list_append(list, (Elm_Object_Item *)it); } @@ -2895,7 +2895,7 @@ elm_gengrid_realized_items_update(Evas_Object *obj) ELM_GENGRID_CHECK(obj); list = elm_gengrid_realized_items_get(obj); - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) elm_gengrid_item_update(it); } diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index 38a8b23c3f..364ad3ee86 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -129,14 +129,14 @@ _elm_genlist_pan_smart_pos_set(Evas_Object *obj, psd->wsd->pan_x = x; psd->wsd->pan_y = y; - EINA_INLIST_FOREACH (psd->wsd->blocks, itb) + EINA_INLIST_FOREACH(psd->wsd->blocks, itb) { if ((itb->y + itb->h) > y) { Elm_Gen_Item *it; Eina_List *l2; - EINA_LIST_FOREACH (itb->items, l2, it) + EINA_LIST_FOREACH(itb->items, l2, it) { if ((itb->y + it->y) >= y) { @@ -387,7 +387,7 @@ _item_block_unrealize(Item_Block *itb) if (!itb->realized) return; evas_event_freeze(evas_object_evas_get(ELM_WIDGET_DATA(itb->sd)->obj)); - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) { if (itb->must_recalc || !it->group) { @@ -440,7 +440,7 @@ _calc_job(void *data) if (sd->w != ow) sd->w = ow; evas_event_freeze(evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj)); - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { Eina_Bool show_me = EINA_FALSE; @@ -458,7 +458,7 @@ _calc_job(void *data) Eina_List *l; Elm_Gen_Item *it; - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) if (it->item->mincalcd) it->item->mincalcd = EINA_FALSE; itb->changed = EINA_TRUE; if (itb->must_recalc) did_must_recalc = EINA_TRUE; @@ -499,7 +499,7 @@ _calc_job(void *data) } if ((chb) && (EINA_INLIST_GET(chb)->next)) { - EINA_INLIST_FOREACH (EINA_INLIST_GET(chb)->next, itb) + EINA_INLIST_FOREACH(EINA_INLIST_GET(chb)->next, itb) { if (itb->realized) _item_block_unrealize(itb); } @@ -599,7 +599,7 @@ _elm_genlist_smart_sizing_eval(Evas_Object *obj) sd->prev_viewport_w = vw; - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { itb->must_recalc = EINA_TRUE; } @@ -633,7 +633,7 @@ _item_contract_emit(Elm_Gen_Item *it) edje_object_signal_emit(VIEW(it), "elm,state,contract_flip", ""); it->item->tree_effect_finished = EINA_FALSE; - EINA_LIST_FOREACH (it->item->items, l, it2) + EINA_LIST_FOREACH(it->item->items, l, it2) if (it2) _item_contract_emit(it2); } @@ -643,7 +643,7 @@ _item_tree_effect_before(Elm_Gen_Item *it) Elm_Gen_Item *it2; Eina_List *l; - EINA_LIST_FOREACH (it->item->items, l, it2) + EINA_LIST_FOREACH(it->item->items, l, it2) { if (it2->parent && (it == it2->parent)) { @@ -744,7 +744,7 @@ _item_sub_items_clear(Elm_Gen_Item *it) ELM_GENLIST_ITEM_CHECK_OR_RETURN(it); - EINA_LIST_FOREACH (it->item->items, l, it2) + EINA_LIST_FOREACH(it->item->items, l, it2) tl = eina_list_append(tl, it2); EINA_LIST_FREE (tl, it2) elm_object_item_del(it2); @@ -784,7 +784,7 @@ _item_tree_effect_finish(Elm_Genlist_Smart_Data *sd) if (sd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT) _item_sub_items_clear(sd->expanded_item); - EINA_LIST_FOREACH (sd->expanded_item->item->items, l, it) + EINA_LIST_FOREACH(sd->expanded_item->item->items, l, it) { it->item->tree_effect_finished = EINA_TRUE; it->item->old_scrl_y = it->item->scrl_y; @@ -940,7 +940,7 @@ _item_text_realize(Elm_Gen_Item *it, if (!(*source)) *source = elm_widget_stringlist_get (edje_object_data_get(target, "texts")); - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -976,7 +976,7 @@ _item_mode_content_realize(Elm_Gen_Item *it, const char *key; Evas_Object *ic; - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -1014,7 +1014,7 @@ _item_state_realize(Elm_Gen_Item *it, if (!(*source)) *source = elm_widget_stringlist_get (edje_object_data_get(target, "states")); - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -1143,7 +1143,7 @@ _item_cache_find(Elm_Gen_Item *it) Eina_Bool tree = 0; if (it->item->type & ELM_GENLIST_ITEM_TREE) tree = 1; - EINA_INLIST_FOREACH_SAFE (GL_IT(it)->wsd->item_cache, l, itc) + EINA_INLIST_FOREACH_SAFE(GL_IT(it)->wsd->item_cache, l, itc) { if ((itc->selected) || (itc->disabled) || (itc->expanded)) continue; @@ -1220,7 +1220,7 @@ _item_content_realize(Elm_Gen_Item *it, *source = elm_widget_stringlist_get (edje_object_data_get(target, "contents")); - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -1578,7 +1578,7 @@ _tree_effect_animator_cb(void *data) expanded_next_it = sd->expanded_next_item; /* move items */ - EINA_LIST_FOREACH (sd->move_items, l, it) + EINA_LIST_FOREACH(sd->move_items, l, it) { if (sd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_EXPAND) { @@ -1708,7 +1708,7 @@ _group_items_recalc(void *data) Elm_Genlist_Smart_Data *sd = data; evas_event_freeze(evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj)); - EINA_LIST_FOREACH (sd->group_items, l, git) + EINA_LIST_FOREACH(sd->group_items, l, git) { if (git->item->want_realize) { @@ -1839,7 +1839,7 @@ _item_block_position(Item_Block *itb, (evas_object_evas_get(ELM_WIDGET_DATA(itb->sd)->obj), &cvx, &cvy, &cvw, &cvh); - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) { if (it->generation < GL_IT(it)->wsd->generation) continue; else if (GL_IT(it)->wsd->reorder_it == it) @@ -1967,7 +1967,7 @@ _elm_genlist_pan_smart_calculate(Evas_Object *obj) evas_object_geometry_get(obj, &ox, &oy, &ow, &oh); evas_output_viewport_get(evas_object_evas_get(obj), &cvx, &cvy, &cvw, &cvh); - EINA_LIST_FOREACH (psd->wsd->group_items, l, git) + EINA_LIST_FOREACH(psd->wsd->group_items, l, git) { git->item->want_realize = EINA_FALSE; } @@ -1986,7 +1986,7 @@ _elm_genlist_pan_smart_calculate(Evas_Object *obj) } } - EINA_INLIST_FOREACH (psd->wsd->blocks, itb) + EINA_INLIST_FOREACH(psd->wsd->blocks, itb) { itb->w = psd->wsd->minw; if (ELM_RECTS_INTERSECT(itb->x - psd->wsd->pan_x + ox, @@ -2433,13 +2433,13 @@ _elm_genlist_smart_theme(Evas_Object *obj) sd->item_width = sd->item_height = 0; sd->group_item_width = sd->group_item_height = 0; sd->minw = sd->minh = sd->realminw = 0; - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { Eina_List *l; Elm_Gen_Item *it; if (itb->realized) _item_block_unrealize(itb); - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) it->item->mincalcd = EINA_FALSE; itb->changed = EINA_TRUE; @@ -2540,7 +2540,7 @@ _item_block_position_update(Eina_Inlist *list, { Item_Block *tmp; - EINA_INLIST_FOREACH (list, tmp) + EINA_INLIST_FOREACH(list, tmp) { tmp->position = idx++; tmp->position_update = EINA_TRUE; @@ -2554,7 +2554,7 @@ _item_position_update(Eina_List *list, Elm_Gen_Item *it; Eina_List *l; - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) { it->position = idx++; it->position_update = EINA_TRUE; @@ -2568,7 +2568,7 @@ _item_block_merge(Item_Block *left, Eina_List *l; Elm_Gen_Item *it2; - EINA_LIST_FOREACH (right->items, l, it2) + EINA_LIST_FOREACH(right->items, l, it2) { it2->item->block = left; left->count++; @@ -2980,7 +2980,7 @@ _long_press_cb(void *data) list = elm_genlist_realized_items_get (ELM_WIDGET_DATA(GL_IT(it)->wsd)->obj); - EINA_LIST_FOREACH (list, l, it_tmp) + EINA_LIST_FOREACH(list, l, it_tmp) { if (it != it_tmp) _item_unselect(it_tmp); } @@ -3873,7 +3873,7 @@ _item_mouse_up_cb(void *data, const Eina_List *l, *l_next; Elm_Gen_Item *it2; - EINA_LIST_FOREACH_SAFE (sd->selected, l, l_next, it2) + EINA_LIST_FOREACH_SAFE(sd->selected, l, l_next, it2) if (it2 != it) { _item_unhighlight(it2); @@ -4079,7 +4079,7 @@ _item_mode_content_unrealize(Elm_Gen_Item *it, const char *key; Evas_Object *ic = NULL; - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -4111,7 +4111,7 @@ _item_content_unrealize(Elm_Gen_Item *it, const char *key; Evas_Object *ic = NULL; - EINA_LIST_FOREACH (*source, l, key) + EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; @@ -4179,7 +4179,7 @@ _item_block_recalc(Item_Block *itb, Evas_Coord y = 0; itb->num = in; - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) { if (it->generation < GL_IT(it)->wsd->generation) continue; show_me |= it->item->show_me; @@ -4255,7 +4255,7 @@ _update_job(void *data) num = 0; evas_event_freeze(evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj)); - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { Evas_Coord itminw, itminh; Elm_Gen_Item *it; @@ -4269,7 +4269,7 @@ _update_job(void *data) } num0 = num; recalc = EINA_FALSE; - EINA_LIST_FOREACH (itb->items, l2, it) + EINA_LIST_FOREACH(itb->items, l2, it) { if (it->item->updateme) { @@ -4903,7 +4903,7 @@ _item_disable_hook(Elm_Object_Item *item) edje_object_signal_emit (it->deco_all_view, "elm,state,enabled", "elm"); } - EINA_LIST_FOREACH (it->content_objs, l, obj) + EINA_LIST_FOREACH(it->content_objs, l, obj) elm_widget_disabled_set(obj, elm_widget_item_disabled_get(it)); } } @@ -5391,7 +5391,7 @@ elm_genlist_realized_items_get(const Evas_Object *obj) ELM_GENLIST_CHECK(obj) NULL; ELM_GENLIST_DATA_GET(obj, sd); - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { if (itb->realized) { @@ -5399,7 +5399,7 @@ elm_genlist_realized_items_get(const Evas_Object *obj) Elm_Gen_Item *it; done = EINA_TRUE; - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) { if (it->realized) list = eina_list_append(list, it); } @@ -5427,7 +5427,7 @@ elm_genlist_at_xy_item_get(const Evas_Object *obj, evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh); lasty = oy; - EINA_INLIST_FOREACH (sd->blocks, itb) + EINA_INLIST_FOREACH(sd->blocks, itb) { Eina_List *l; Elm_Gen_Item *it; @@ -5436,7 +5436,7 @@ elm_genlist_at_xy_item_get(const Evas_Object *obj, oy + itb->y - itb->sd->pan_y, itb->w, itb->h, x, y, 1, 1)) continue; - EINA_LIST_FOREACH (itb->items, l, it) + EINA_LIST_FOREACH(itb->items, l, it) { Evas_Coord itx, ity; @@ -5650,7 +5650,7 @@ _elm_genlist_move_items_set(Elm_Gen_Item *it) GL_IT(it)->wsd->move_items = elm_genlist_realized_items_get (ELM_WIDGET_DATA(GL_IT(it)->wsd)->obj); - EINA_LIST_FOREACH_SAFE (GL_IT(it)->wsd->move_items, l, ll, it2) + EINA_LIST_FOREACH_SAFE(GL_IT(it)->wsd->move_items, l, ll, it2) { if (it2 == GL_IT(it)->wsd->expanded_next_item) break; GL_IT(it)->wsd->move_items = @@ -6350,7 +6350,7 @@ elm_genlist_realized_items_update(Evas_Object *obj) ELM_GENLIST_CHECK(obj); list = elm_genlist_realized_items_get(obj); - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) elm_genlist_item_update(it); } @@ -6381,7 +6381,7 @@ elm_genlist_item_decorate_mode_set(Elm_Object_Item *item, if (sd->multi) { - EINA_LIST_FOREACH (sd->selected, l, it2) + EINA_LIST_FOREACH(sd->selected, l, it2) if (((Elm_Gen_Item *)it2)->realized) elm_genlist_item_selected_set(it2, EINA_FALSE); } @@ -6453,7 +6453,7 @@ elm_genlist_decorate_mode_set(Evas_Object *obj, list = elm_genlist_realized_items_get(obj); if (!sd->decorate_all_mode) { - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) { if (it->item->type != ELM_GENLIST_ITEM_GROUP) _decorate_all_item_unrealize(it); @@ -6472,7 +6472,7 @@ elm_genlist_decorate_mode_set(Evas_Object *obj, _decorate_item_finished_signal_cb(deco_it, obj, NULL, NULL); } - EINA_LIST_FOREACH (list, l, it) + EINA_LIST_FOREACH(list, l, it) { if (it->item->type != ELM_GENLIST_ITEM_GROUP) { diff --git a/legacy/elementary/src/lib/elm_gesture_layer.c b/legacy/elementary/src/lib/elm_gesture_layer.c index 08abba3baf..059705fecc 100644 --- a/legacy/elementary/src/lib/elm_gesture_layer.c +++ b/legacy/elementary/src/lib/elm_gesture_layer.c @@ -1430,7 +1430,7 @@ _n_long_tap_test_reset(Gesture_Info *gesture) st = gesture->data; - EINA_LIST_FOREACH (st->touched, l, p) + EINA_LIST_FOREACH(st->touched, l, p) free(p); eina_list_free(st->touched); @@ -1475,7 +1475,7 @@ _line_test_reset(Gesture_Info *gesture) st = gesture->data; list = st->list; - EINA_LIST_FOREACH (list, l, t_line) + EINA_LIST_FOREACH(list, l, t_line) free(t_line); eina_list_free(list); @@ -1616,7 +1616,7 @@ _tap_gesture_check_finish(Gesture_Info *gesture) Eina_List *pe_list; if (!st->l) return EINA_FALSE; - EINA_LIST_FOREACH (st->l, l, pe_list) + EINA_LIST_FOREACH(st->l, l, pe_list) { /* No match taps number on device, ABORT */ if (eina_list_count(pe_list) != st->n_taps_needed) @@ -1884,7 +1884,7 @@ _compute_taps_center(Long_Tap_Type *st, if (!eina_list_count(st->touched)) return; - EINA_LIST_FOREACH (st->touched, l, p) + EINA_LIST_FOREACH(st->touched, l, p) { /* Accumulate all then take avarage */ if (p->device == pe->device) /* This will take care of values * coming from MOVE event */ @@ -2253,7 +2253,7 @@ _momentum_test(Evas_Object *obj, /* First make avarage of all touched devices to determine center point */ pe_local = *pe; /* Copy pe event info to local */ - EINA_LIST_FOREACH (sd->touched, l, p) + EINA_LIST_FOREACH(sd->touched, l, p) if (p->device != pe_local.device) { pe_local.x += p->x; @@ -2635,7 +2635,7 @@ _n_line_test(Evas_Object *obj, Line_Data *t_line; double base_angle = ELM_GESTURE_NEGATIVE_ANGLE; Eina_Bool lines_parallel = EINA_TRUE; - EINA_LIST_FOREACH (list, l, t_line) + EINA_LIST_FOREACH(list, l, t_line) { if (base_angle < 0) base_angle = t_line->line_angle; @@ -3229,7 +3229,7 @@ _zoom_test(Evas_Object *obj, if (!st->zoom_st.timestamp) /* Now scan touched-devices list * and find other finger */ { - EINA_LIST_FOREACH (sd->touched, l, p) + EINA_LIST_FOREACH(sd->touched, l, p) { /* Device of other finger <> pe device */ if (p->device != pe->device) break; @@ -3472,7 +3472,7 @@ _rotate_test(Evas_Object *obj, if (!st->rotate_st.timestamp) /* Now scan touched-devices list * and find other finger */ { - EINA_LIST_FOREACH (sd->touched, l, p) + EINA_LIST_FOREACH(sd->touched, l, p) { /* Device of other finger <> pe device */ if (p->device != pe->device) break; diff --git a/legacy/elementary/src/lib/elm_grid.c b/legacy/elementary/src/lib/elm_grid.c index 659e54bcd4..eb7f8e5a76 100644 --- a/legacy/elementary/src/lib/elm_grid.c +++ b/legacy/elementary/src/lib/elm_grid.c @@ -125,7 +125,7 @@ _elm_grid_smart_del(Evas_Object *obj) /* let's make our grid object the *last* to be processed, since it * may (smart) parent other sub objects here */ - EINA_LIST_FOREACH (ELM_WIDGET_DATA(sd)->subobjs, l, child) + EINA_LIST_FOREACH(ELM_WIDGET_DATA(sd)->subobjs, l, child) { if (child == ELM_WIDGET_DATA(sd)->resize_obj) { diff --git a/legacy/elementary/src/lib/elm_icon.c b/legacy/elementary/src/lib/elm_icon.c index beaf1ef886..7ccf3d9f7a 100644 --- a/legacy/elementary/src/lib/elm_icon.c +++ b/legacy/elementary/src/lib/elm_icon.c @@ -133,7 +133,7 @@ _icon_thumb_cleanup(Ethumb_Client *ethumbd) Eina_List *l, *ll; Elm_Icon_Smart_Data *sd; - EINA_LIST_FOREACH_SAFE (_elm_icon_retry, l, ll, sd) + EINA_LIST_FOREACH_SAFE(_elm_icon_retry, l, ll, sd) if (_icon_thumb_retry(sd)) { _elm_icon_retry = eina_list_remove_list(_elm_icon_retry, l); @@ -700,7 +700,7 @@ _elm_icon_signal_callback_del(Evas_Object *obj, if (!ELM_IMAGE_DATA(sd)->edje) return NULL; - EINA_LIST_FOREACH (sd->edje_signals, l, esd) + EINA_LIST_FOREACH(sd->edje_signals, l, esd) { if ((esd->func == func_cb) && (!strcmp(esd->emission, emission)) && (!strcmp(esd->source, source))) diff --git a/legacy/elementary/src/lib/elm_index.c b/legacy/elementary/src/lib/elm_index.c index 26960ccc1e..e84f6f1831 100644 --- a/legacy/elementary/src/lib/elm_index.c +++ b/legacy/elementary/src/lib/elm_index.c @@ -58,7 +58,7 @@ _index_box_clear(Evas_Object *obj, if (!sd->level_active[level]) return; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (!VIEW(it)) continue; if (it->level != level) continue; @@ -119,7 +119,7 @@ _index_box_auto_fill(Evas_Object *obj, rtl = elm_widget_mirrored_get(obj); evas_object_geometry_get(box, NULL, NULL, &w, &h); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { Evas_Object *o; const char *stacking; @@ -317,7 +317,7 @@ _item_find(Evas_Object *obj, ELM_INDEX_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) if (it->base.data == data) return it; return NULL; @@ -359,7 +359,7 @@ _sel_eval(Evas_Object *obj, dist = 0x7fffffff; evas_object_geometry_get(sd->bx[i], &bx, &by, &bw, &bh); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->level != i) continue; if (it->level != sd->level) @@ -630,7 +630,7 @@ _on_mouse_move_access(void *data, it_closest = NULL; dist = 0x7fffffff; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { evas_object_geometry_get(VIEW(it), &x, &y, &w, &h); xx = x + (w / 2); @@ -795,7 +795,7 @@ _elm_index_smart_focus_next(const Evas_Object *obj, ao = evas_object_data_get(po, "_part_access_obj"); items = eina_list_append(items, ao); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->level != 0) continue; items = eina_list_append(items, it->base.access_obj); @@ -820,7 +820,7 @@ _access_obj_process(Evas_Object *obj, Eina_Bool is_access) ELM_INDEX_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->level != 0) continue; if (is_access) _access_widget_item_register(it); @@ -1003,7 +1003,7 @@ elm_index_selected_item_get(const Evas_Object *obj, ELM_INDEX_CHECK(obj) NULL; ELM_INDEX_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if ((it->selected) && (it->level == level)) return (Elm_Object_Item *)it; @@ -1171,7 +1171,7 @@ elm_index_item_clear(Evas_Object *obj) ELM_INDEX_DATA_GET(obj, sd); _index_box_clear(obj, sd->bx[sd->level], sd->level); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->level != sd->level) continue; clear = eina_list_append(clear, it); diff --git a/legacy/elementary/src/lib/elm_layout.c b/legacy/elementary/src/lib/elm_layout.c index 81e7e323e0..5b2532e640 100644 --- a/legacy/elementary/src/lib/elm_layout.c +++ b/legacy/elementary/src/lib/elm_layout.c @@ -195,7 +195,7 @@ _parts_signals_emit(Elm_Layout_Smart_Data *sd) const Eina_List *l; Elm_Layout_Sub_Object_Data *sub_d; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { _icon_signal_emit(sd, sub_d, EINA_TRUE); _text_signal_emit(sd, sub_d, EINA_TRUE); @@ -208,7 +208,7 @@ _parts_text_fix(Elm_Layout_Smart_Data *sd) const Eina_List *l; Elm_Layout_Sub_Object_Data *sub_d; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if (sub_d->type == TEXT) { @@ -236,7 +236,7 @@ _parts_cursors_apply(Elm_Layout_Smart_Data *sd) edje_object_file_get(ELM_WIDGET_DATA(sd)->resize_obj, &file, &group); - EINA_LIST_FOREACH (sd->parts_cursors, l, pc) + EINA_LIST_FOREACH(sd->parts_cursors, l, pc) { Evas_Object *obj = (Evas_Object *)edje_object_part_object_get (ELM_WIDGET_DATA(sd)->resize_obj, pc->part); @@ -428,7 +428,7 @@ _elm_layout_smart_sub_object_del(Evas_Object *obj, if (!ELM_WIDGET_CLASS(_elm_layout_parent_sc)->sub_object_del(obj, sobj)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if (sub_d->obj != sobj) continue; @@ -536,7 +536,7 @@ _elm_layout_smart_callback_del(Evas_Object *obj, ELM_LAYOUT_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->edje_signals, l, esd) + EINA_LIST_FOREACH(sd->edje_signals, l, esd) { if ((esd->func == func_cb) && (!strcmp(esd->emission, emission)) && (!strcmp(esd->source, source))) @@ -610,7 +610,7 @@ _elm_layout_smart_text_set(Evas_Object *obj, if (!_elm_layout_part_aliasing_eval(sd, &part, EINA_TRUE)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if ((sub_d->type == TEXT) && (!strcmp(part, sub_d->part))) { @@ -685,7 +685,7 @@ _elm_layout_smart_content_set(Evas_Object *obj, if (!_elm_layout_part_aliasing_eval(sd, &part, EINA_FALSE)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if ((sub_d->type == SWALLOW)) { @@ -747,7 +747,7 @@ _elm_layout_smart_content_get(const Evas_Object *obj, if (!_elm_layout_part_aliasing_eval(sd, &part, EINA_FALSE)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if ((sub_d->type == SWALLOW) && !strcmp(part, sub_d->part)) return sub_d->obj; @@ -767,7 +767,7 @@ _elm_layout_smart_content_unset(Evas_Object *obj, if (!_elm_layout_part_aliasing_eval(sd, &part, EINA_FALSE)) return EINA_FALSE; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if ((sub_d->type == SWALLOW) && (!strcmp(part, sub_d->part))) { @@ -1010,7 +1010,7 @@ _elm_layout_smart_box_remove(Evas_Object *obj, const Eina_List *l; Elm_Layout_Sub_Object_Data *sub_d; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if (!_sub_box_is(sub_d)) continue; if ((sub_d->obj == child) && (!strcmp(sub_d->part, part))) @@ -1133,7 +1133,7 @@ _elm_layout_smart_table_unpack(Evas_Object *obj, const Eina_List *l; Elm_Layout_Sub_Object_Data *sub_d; - EINA_LIST_FOREACH (sd->subs, l, sub_d) + EINA_LIST_FOREACH(sd->subs, l, sub_d) { if (sub_d->type != TABLE_PACK) continue; if ((sub_d->obj == child) && (!strcmp(sub_d->part, part))) @@ -1240,7 +1240,7 @@ _elm_layout_smart_del(Evas_Object *obj) /* let's make our Edje object the *last* to be processed, since it * may (smart) parent other sub objects here */ - EINA_LIST_FOREACH (ELM_WIDGET_DATA(sd)->subobjs, l, child) + EINA_LIST_FOREACH(ELM_WIDGET_DATA(sd)->subobjs, l, child) { if (child == ELM_WIDGET_DATA(sd)->resize_obj) { @@ -1311,7 +1311,7 @@ _parts_cursors_find(Elm_Layout_Smart_Data *sd, const Eina_List *l; Elm_Layout_Sub_Object_Cursor *pc; - EINA_LIST_FOREACH (sd->parts_cursors, l, pc) + EINA_LIST_FOREACH(sd->parts_cursors, l, pc) { if (!strcmp(pc->part, part)) return pc; @@ -1712,7 +1712,7 @@ elm_layout_part_cursor_unset(Evas_Object *obj, Eina_List *l; Elm_Layout_Sub_Object_Cursor *pc; - EINA_LIST_FOREACH (sd->parts_cursors, l, pc) + EINA_LIST_FOREACH(sd->parts_cursors, l, pc) { if (!strcmp(part_name, pc->part)) { diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index a67a0eca8c..42fe569441 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/src/lib/elm_list.c @@ -538,7 +538,7 @@ _items_fix(Evas_Object *obj) evas_object_ref(obj); _elm_list_walk(sd); // watch out "return" before unwalk! - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->deleted) continue; if (it->icon) @@ -566,7 +566,7 @@ _items_fix(Evas_Object *obj) } i = 0; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->deleted) continue; @@ -748,7 +748,7 @@ _mirrored_set(Evas_Object *obj, sd->s_iface->mirrored_set(obj, rtl); - EINA_LIST_FOREACH (sd->items, n, it) + EINA_LIST_FOREACH(sd->items, n, it) edje_object_mirrored_set(VIEW(it), rtl); } @@ -764,7 +764,7 @@ _elm_list_smart_theme(Evas_Object *obj) _mirrored_set(obj, elm_widget_mirrored_get(obj)); - EINA_LIST_FOREACH (sd->items, n, it) + EINA_LIST_FOREACH(sd->items, n, it) { edje_object_scale_set (VIEW(it), elm_widget_scale_get(obj) * elm_config_scale_get()); @@ -805,7 +805,7 @@ _elm_list_smart_sub_object_del(Evas_Object *obj, if ((sobj == sd->box) || (sobj == obj)) goto end; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if ((sobj == it->icon) || (sobj == it->end)) { @@ -1164,7 +1164,7 @@ _mouse_up_cb(void *data, const Eina_List *l, *l_next; Elm_List_Item *it2; - EINA_LIST_FOREACH_SAFE (sd->selected, l, l_next, it2) + EINA_LIST_FOREACH_SAFE(sd->selected, l, l_next, it2) if (it2 != it) _item_unselect(it2); _item_highlight(it); _item_select(it); @@ -1462,7 +1462,7 @@ _elm_list_smart_focus_next(const Evas_Object *obj, if (_elm_config->access_mode != ELM_ACCESS_MODE_ON) return EINA_FALSE; - EINA_LIST_FOREACH (sd->items, elist, it) + EINA_LIST_FOREACH(sd->items, elist, it) { items = eina_list_append(items, it->base.access_obj); if (it->icon) items = eina_list_append(items, it->icon); @@ -1552,7 +1552,7 @@ _elm_list_smart_del(Evas_Object *obj) ERR("ERROR: list deleted while walking.\n"); sd->delete_me = EINA_TRUE; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { if (it->icon) evas_object_event_callback_del @@ -1861,7 +1861,7 @@ elm_list_clear(Evas_Object *obj) { Eina_List *n; - EINA_LIST_FOREACH (sd->items, n, it) + EINA_LIST_FOREACH(sd->items, n, it) { if (it->deleted) continue; it->deleted = EINA_TRUE; diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c index dd283977f0..2f5f9644f7 100644 --- a/legacy/elementary/src/lib/elm_map.c +++ b/legacy/elementary/src/lib/elm_map.c @@ -865,7 +865,7 @@ _grid_unload(Grid *g) EINA_SAFETY_ON_NULL_RETURN(g); it = eina_matrixsparse_iterator_new(g->grid); - EINA_ITERATOR_FOREACH (it, cell) + EINA_ITERATOR_FOREACH(it, cell) { gi = eina_matrixsparse_cell_data_get(cell); _grid_item_unload(gi); @@ -884,7 +884,7 @@ _grid_load(Grid *g) EINA_SAFETY_ON_NULL_RETURN(g); it = eina_matrixsparse_iterator_new(g->grid); - EINA_ITERATOR_FOREACH (it, cell) + EINA_ITERATOR_FOREACH(it, cell) { gi = eina_matrixsparse_cell_data_get(cell); if (!_grid_item_in_viewport(gi)) _grid_item_unload(gi); @@ -911,7 +911,7 @@ _grid_place(Elm_Map_Smart_Data *sd) EINA_SAFETY_ON_NULL_RETURN(sd); - EINA_LIST_FOREACH (sd->grids, l, g) + EINA_LIST_FOREACH(sd->grids, l, g) { if (sd->zoom == g->zoom) _grid_load(g); else _grid_unload(g); @@ -955,7 +955,7 @@ _grid_all_clear(Elm_Map_Smart_Data *sd) Eina_Matrixsparse_Cell *cell; Eina_Iterator *it = eina_matrixsparse_iterator_new(g->grid); - EINA_ITERATOR_FOREACH (it, cell) + EINA_ITERATOR_FOREACH(it, cell) { Grid_Item *gi; @@ -985,7 +985,7 @@ _track_place(Elm_Map_Smart_Data *sd) size = sd->size.w; - EINA_LIST_FOREACH (sd->track, l, route) + EINA_LIST_FOREACH(sd->track, l, route) { double lon_min, lon_max; double lat_min, lat_max; @@ -1039,12 +1039,12 @@ _smooth_update(Elm_Map_Smart_Data *sd) Eina_List *l; Grid *g; - EINA_LIST_FOREACH (sd->grids, l, g) + EINA_LIST_FOREACH(sd->grids, l, g) { Eina_Iterator *it = eina_matrixsparse_iterator_new(g->grid); Eina_Matrixsparse_Cell *cell; - EINA_ITERATOR_FOREACH (it, cell) + EINA_ITERATOR_FOREACH(it, cell) { Grid_Item *gi = eina_matrixsparse_cell_data_get(cell); if (_grid_item_in_viewport(gi)) @@ -1761,7 +1761,7 @@ _overlay_class_cb_set(Overlay_Class *ovl, EINA_SAFETY_ON_NULL_RETURN(ovl); // Update class members' callbacks - EINA_LIST_FOREACH (ovl->members, l, overlay) + EINA_LIST_FOREACH(ovl->members, l, overlay) _overlay_group_cb_set(overlay->grp, cb, data); } @@ -1779,7 +1779,7 @@ _overlay_class_icon_update(Overlay_Class *ovl, ovl->icon = icon; // Update class members' class icons - EINA_LIST_FOREACH (ovl->members, l, overlay) + EINA_LIST_FOREACH(ovl->members, l, overlay) { _overlay_group_icon_update(overlay->grp, icon); @@ -1802,7 +1802,7 @@ _overlay_class_content_update(Overlay_Class *ovl, ovl->content = content; // Update class members' class contents - EINA_LIST_FOREACH (ovl->members, l, overlay) + EINA_LIST_FOREACH(ovl->members, l, overlay) { _overlay_group_content_update(overlay->grp, content); @@ -1821,7 +1821,7 @@ _overlay_class_color_update(Overlay_Class *ovl, EINA_SAFETY_ON_NULL_RETURN(ovl); // Update class members' class contents - EINA_LIST_FOREACH (ovl->members, l, overlay) + EINA_LIST_FOREACH(ovl->members, l, overlay) _overlay_group_color_update(overlay->grp, c); } @@ -1834,7 +1834,7 @@ _overlay_class_free(Overlay_Class *clas) EINA_SAFETY_ON_NULL_RETURN(clas); // Update class members' class contents - EINA_LIST_FOREACH (clas->members, l, overlay) + EINA_LIST_FOREACH(clas->members, l, overlay) { overlay->grp->klass = NULL; _overlay_group_content_update(overlay->grp, NULL); @@ -2035,7 +2035,7 @@ _overlay_route_show(Overlay_Route *r) EINA_SAFETY_ON_NULL_RETURN(r->wsd); evas_object_polygon_points_clear(r->obj); - EINA_LIST_FOREACH (r->nodes, l, n) + EINA_LIST_FOREACH(r->nodes, l, n) { p = eina_list_nth(r->paths, n->idx); if (!p) continue; @@ -2044,10 +2044,10 @@ _overlay_route_show(Overlay_Route *r) (r->wsd, n->pos.lon, n->pos.lat, r->wsd->size.w, &p->x, &p->y); _coord_to_canvas(r->wsd, p->x, p->y, &p->x, &p->y); } - EINA_LIST_FOREACH (r->paths, l, p) + EINA_LIST_FOREACH(r->paths, l, p) evas_object_polygon_point_add(r->obj, p->x - 3, p->y - 3); - EINA_LIST_REVERSE_FOREACH (r->paths, l, p) + EINA_LIST_REVERSE_FOREACH(r->paths, l, p) evas_object_polygon_point_add(r->obj, p->x + 3, p->y + 3); evas_object_show(r->obj); @@ -2093,7 +2093,7 @@ _overlay_route_new(Elm_Map_Smart_Data *sd, evas_object_smart_member_add(ovl->obj, sd->pan_obj); _overlay_route_color_update(ovl, c); - EINA_LIST_FOREACH (route->nodes, l, n) + EINA_LIST_FOREACH(route->nodes, l, n) { Path *path; Path_Node *node; @@ -2205,7 +2205,7 @@ _overlay_polygon_show(Overlay_Polygon *ovl) sd = ovl->wsd; evas_object_polygon_points_clear(ovl->obj); - EINA_LIST_FOREACH (ovl->regions, l, r) + EINA_LIST_FOREACH(ovl->regions, l, r) { Evas_Coord x, y; @@ -2429,7 +2429,7 @@ _overlay_grouping(Eina_List *clas_membs, else if (boss->type == ELM_MAP_OVERLAY_TYPE_BUBBLE) _overlay_bubble_coord_get(boss->ovl, &bx, &by, &bw, &bh); - EINA_LIST_FOREACH (clas_membs, l, memb) + EINA_LIST_FOREACH(clas_membs, l, memb) { Evas_Coord x = 0, y = 0, w = 0, h = 0; @@ -2553,7 +2553,7 @@ _overlay_place(Elm_Map_Smart_Data *sd) eina_list_free(sd->group_overlays); sd->group_overlays = NULL; - EINA_LIST_FOREACH (sd->overlays, l, overlay) + EINA_LIST_FOREACH(sd->overlays, l, overlay) { // Reset groups if ((overlay->type == ELM_MAP_OVERLAY_TYPE_CLASS) || @@ -2571,7 +2571,7 @@ _overlay_place(Elm_Map_Smart_Data *sd) } // Classify into group boss or follwer - EINA_LIST_FOREACH (sd->overlays, l, overlay) + EINA_LIST_FOREACH(sd->overlays, l, overlay) { Elm_Map_Overlay *boss; Overlay_Class *clas; @@ -2581,7 +2581,7 @@ _overlay_place(Elm_Map_Smart_Data *sd) clas = overlay->ovl; if (clas->zoom_max < sd->zoom) continue; - EINA_LIST_FOREACH (clas->members, ll, boss) + EINA_LIST_FOREACH(clas->members, ll, boss) { if (boss->type == ELM_MAP_OVERLAY_TYPE_CLASS) continue; if (boss->hide || (boss->zoom_min > sd->zoom)) continue; @@ -2591,9 +2591,9 @@ _overlay_place(Elm_Map_Smart_Data *sd) } // Place group overlays and overlays - EINA_LIST_FOREACH (sd->group_overlays, l, overlay) + EINA_LIST_FOREACH(sd->group_overlays, l, overlay) _overlay_show(overlay); - EINA_LIST_FOREACH (sd->overlays, l, overlay) + EINA_LIST_FOREACH(sd->overlays, l, overlay) _overlay_show(overlay); } @@ -3275,7 +3275,7 @@ _source_tile_set(Elm_Map_Smart_Data *sd, if (sd->src_tile && !strcmp(sd->src_tile->name, source_name)) return; - EINA_LIST_FOREACH (sd->src_tiles, l, s) + EINA_LIST_FOREACH(sd->src_tiles, l, s) { if (!strcmp(s->name, source_name)) { @@ -3316,7 +3316,7 @@ _source_route_set(Elm_Map_Smart_Data *sd, if (sd->src_route && !strcmp(sd->src_route->name, source_name)) return; - EINA_LIST_FOREACH (sd->src_routes, l, s) + EINA_LIST_FOREACH(sd->src_routes, l, s) { if (!strcmp(s->name, source_name)) { @@ -3343,7 +3343,7 @@ _source_name_set(Elm_Map_Smart_Data *sd, if (sd->src_name && !strcmp(sd->src_name->name, source_name)) return; - EINA_LIST_FOREACH (sd->src_names, l, s) + EINA_LIST_FOREACH(sd->src_names, l, s) { if (!strcmp(s->name, source_name)) { @@ -3514,7 +3514,7 @@ _source_all_load(Elm_Map_Smart_Data *sd) idx = 0; sd->src_tile_names = calloc((eina_list_count(sd->src_tiles) + 1), sizeof(const char *)); - EINA_LIST_FOREACH (sd->src_tiles, l, src_tile) + EINA_LIST_FOREACH(sd->src_tiles, l, src_tile) { eina_stringshare_replace(&sd->src_tile_names[idx], src_tile->name); INF("source : %s", sd->src_tile_names[idx]); @@ -3523,7 +3523,7 @@ _source_all_load(Elm_Map_Smart_Data *sd) idx = 0; sd->src_route_names = calloc((eina_list_count(sd->src_routes) + 1), sizeof(const char *)); - EINA_LIST_FOREACH (sd->src_routes, l, src_route) + EINA_LIST_FOREACH(sd->src_routes, l, src_route) { eina_stringshare_replace(&sd->src_route_names[idx], src_route->name); INF("source : %s", sd->src_route_names[idx]); @@ -3532,7 +3532,7 @@ _source_all_load(Elm_Map_Smart_Data *sd) idx = 0; sd->src_name_names = calloc((eina_list_count(sd->src_names) + 1), sizeof(const char *)); - EINA_LIST_FOREACH (sd->src_names, l, src_name) + EINA_LIST_FOREACH(sd->src_names, l, src_name) { eina_stringshare_replace(&sd->src_name_names[idx], src_name->name); INF("source : %s", sd->src_name_names[idx]); @@ -3873,17 +3873,17 @@ _elm_map_smart_del(Evas_Object *obj) ELM_MAP_DATA_GET(obj, sd); - EINA_LIST_FOREACH_SAFE (sd->routes, l, ll, r) + EINA_LIST_FOREACH_SAFE(sd->routes, l, ll, r) elm_map_route_del(r); eina_list_free(sd->routes); - EINA_LIST_FOREACH_SAFE (sd->names, l, ll, na) + EINA_LIST_FOREACH_SAFE(sd->names, l, ll, na) elm_map_name_del(na); eina_list_free(sd->names); - EINA_LIST_FOREACH_SAFE (sd->overlays, l, ll, overlay) + EINA_LIST_FOREACH_SAFE(sd->overlays, l, ll, overlay) elm_map_overlay_del(overlay); eina_list_free(sd->overlays); @@ -4847,9 +4847,9 @@ elm_map_overlays_get(Evas_Object *obj) eina_list_free(sd->all_overlays); sd->all_overlays = NULL; - EINA_LIST_FOREACH (sd->overlays, l, ovl) + EINA_LIST_FOREACH(sd->overlays, l, ovl) sd->all_overlays = eina_list_append(sd->all_overlays, ovl); - EINA_LIST_FOREACH (sd->group_overlays, l, ovl) + EINA_LIST_FOREACH(sd->group_overlays, l, ovl) sd->all_overlays = eina_list_append(sd->all_overlays, ovl); return sd->all_overlays; diff --git a/legacy/elementary/src/lib/elm_menu.c b/legacy/elementary/src/lib/elm_menu.c index fc520bfca4..505c099bd7 100644 --- a/legacy/elementary/src/lib/elm_menu.c +++ b/legacy/elementary/src/lib/elm_menu.c @@ -39,7 +39,7 @@ _submenu_hide(Elm_Menu_Item *item) evas_object_hide(item->submenu.hv); item->submenu.open = EINA_FALSE; - EINA_LIST_FOREACH (item->submenu.items, l, item2) + EINA_LIST_FOREACH(item->submenu.items, l, item2) { if (item2->submenu.open) _submenu_hide(item2); } @@ -83,7 +83,7 @@ _submenu_sizing_eval(Elm_Menu_Item *parent_it) h2, bx, by, bw, bh, px, py, pw, ph; ELM_MENU_DATA_GET_OR_RETURN(WIDGET(parent_it), sd); - EINA_LIST_FOREACH (parent_it->submenu.items, l, item) + EINA_LIST_FOREACH(parent_it->submenu.items, l, item) _item_sizing_eval(item); evas_object_geometry_get @@ -119,7 +119,7 @@ _submenu_sizing_eval(Elm_Menu_Item *parent_it) evas_object_size_hint_max_set(parent_it->submenu.location, bw, h_p); elm_hover_target_set(parent_it->submenu.hv, parent_it->submenu.location); - EINA_LIST_FOREACH (parent_it->submenu.items, l, item) + EINA_LIST_FOREACH(parent_it->submenu.items, l, item) { if (item->submenu.open) _submenu_sizing_eval(item); } @@ -136,7 +136,7 @@ _sizing_eval(Evas_Object *obj) if (!sd->parent) return; - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) _item_sizing_eval(item); evas_object_geometry_get(sd->location, NULL, NULL, &w_p, &h_p); @@ -160,7 +160,7 @@ _sizing_eval(Evas_Object *obj) evas_object_size_hint_max_set(sd->location, bw, h_p); elm_hover_target_set(sd->hv, sd->location); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) if (item->submenu.open) _submenu_sizing_eval(item); } @@ -175,9 +175,9 @@ _elm_menu_smart_theme(Evas_Object *obj) if (!_elm_menu_parent_sc->theme(obj)) return EINA_FALSE; ll = eina_list_append(ll, sd->items); - EINA_LIST_FOREACH (ll, _ll, l) + EINA_LIST_FOREACH(ll, _ll, l) { - EINA_LIST_FOREACH (l, _l, item) + EINA_LIST_FOREACH(l, _l, item) { edje_object_mirrored_set(VIEW(item), elm_widget_mirrored_get(obj)); ll = eina_list_append(ll, item->submenu.items); @@ -339,7 +339,7 @@ _menu_hide(void *data, evas_object_hide(sd->hv); evas_object_hide(data); - EINA_LIST_FOREACH (sd->items, l, item2) + EINA_LIST_FOREACH(sd->items, l, item2) { if (item2->submenu.open) _submenu_hide(item2); } @@ -398,7 +398,7 @@ _menu_item_activate_cb(void *data, item->selected = 1; if (item->parent) { - EINA_LIST_FOREACH (item->parent->submenu.items, l, item2) + EINA_LIST_FOREACH(item->parent->submenu.items, l, item2) { if (item2 != item) elm_menu_item_selected_set((Elm_Object_Item *)item2, 0); @@ -407,7 +407,7 @@ _menu_item_activate_cb(void *data, else { ELM_MENU_DATA_GET(WIDGET(item), sd); - EINA_LIST_FOREACH (sd->items, l, item2) + EINA_LIST_FOREACH(sd->items, l, item2) { if (item2 != item) elm_menu_item_selected_set((Elm_Object_Item *)item2, 0); @@ -655,9 +655,9 @@ elm_menu_parent_set(Evas_Object *obj, elm_hover_parent_set(sd->hv, parent); ll = eina_list_append(ll, sd->items); - EINA_LIST_FOREACH (ll, _ll, l) + EINA_LIST_FOREACH(ll, _ll, l) { - EINA_LIST_FOREACH (l, _l, item) + EINA_LIST_FOREACH(l, _l, item) { if (item->submenu.hv) { @@ -731,7 +731,7 @@ _item_clone(Evas_Object *obj, elm_object_item_disabled_set (new_item, elm_widget_item_disabled_get(item)); - EINA_LIST_FOREACH (item->submenu.items, iter, subitem) + EINA_LIST_FOREACH(item->submenu.items, iter, subitem) _item_clone(obj, (Elm_Menu_Item *)new_item, subitem); } @@ -748,7 +748,7 @@ elm_menu_clone(Evas_Object *from_menu, ELM_MENU_DATA_GET_OR_RETURN(from_menu, from_sd); - EINA_LIST_FOREACH (from_sd->items, iter, item) + EINA_LIST_FOREACH(from_sd->items, iter, item) _item_clone(to_menu, (Elm_Menu_Item *)parent, item); } @@ -1088,7 +1088,7 @@ elm_menu_selected_item_get(const Evas_Object *obj) ELM_MENU_CHECK(obj) NULL; ELM_MENU_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->items, l, item) + EINA_LIST_FOREACH(sd->items, l, item) { if (item->selected) return (Elm_Object_Item *)item; } diff --git a/legacy/elementary/src/lib/elm_panel.c b/legacy/elementary/src/lib/elm_panel.c index ff6b883986..320c6260fc 100644 --- a/legacy/elementary/src/lib/elm_panel.c +++ b/legacy/elementary/src/lib/elm_panel.c @@ -281,7 +281,7 @@ _elm_panel_smart_del(Evas_Object *obj) /* let's make our box object the *last* to be processed, since it * may (smart) parent other sub objects here */ - EINA_LIST_FOREACH (ELM_WIDGET_DATA(sd)->subobjs, l, child) + EINA_LIST_FOREACH(ELM_WIDGET_DATA(sd)->subobjs, l, child) { if (child == sd->bx) { diff --git a/legacy/elementary/src/lib/elm_photocam.c b/legacy/elementary/src/lib/elm_photocam.c index b74655abf9..fb8aeb8614 100644 --- a/legacy/elementary/src/lib/elm_photocam.c +++ b/legacy/elementary/src/lib/elm_photocam.c @@ -339,7 +339,7 @@ _elm_photocam_pan_smart_calculate(Evas_Object *obj) ox - psd->wsd->g_layer_zoom.imx, oy - psd->wsd->g_layer_zoom.imy, ow, oh); - EINA_LIST_FOREACH (psd->wsd->grids, l, g) + EINA_LIST_FOREACH(psd->wsd->grids, l, g) { _grid_load(ELM_WIDGET_DATA(psd->wsd)->obj, g); _grid_place( @@ -624,7 +624,7 @@ _smooth_update(Evas_Object *obj) ELM_PHOTOCAM_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->grids, l, g) + EINA_LIST_FOREACH(sd->grids, l, g) { for (y = 0; y < g->gh; y++) { @@ -736,7 +736,7 @@ _zoom_do(Evas_Object *obj, Eina_List *l, *l_next; Elm_Phocam_Grid *g; - EINA_LIST_FOREACH_SAFE (sd->grids, l, l_next, g) + EINA_LIST_FOREACH_SAFE(sd->grids, l, l_next, g) { if (g->dead) { @@ -1659,7 +1659,7 @@ elm_photocam_zoom_set(Evas_Object *obj, goto done; } - EINA_LIST_FOREACH (sd->grids, l, g) + EINA_LIST_FOREACH(sd->grids, l, g) { if (g->zoom == _grid_zoom_calc(sd->zoom)) { @@ -1679,7 +1679,7 @@ elm_photocam_zoom_set(Evas_Object *obj, sd->grids = eina_list_remove(sd->grids, g_zoom); _grid_clear(obj, g_zoom); free(g_zoom); - EINA_LIST_FOREACH (sd->grids, l, g_zoom) + EINA_LIST_FOREACH(sd->grids, l, g_zoom) { g_zoom->dead = 1; } diff --git a/legacy/elementary/src/lib/elm_radio.c b/legacy/elementary/src/lib/elm_radio.c index 4dbd3d13f1..b1d32fecb4 100644 --- a/legacy/elementary/src/lib/elm_radio.c +++ b/legacy/elementary/src/lib/elm_radio.c @@ -48,7 +48,7 @@ _state_set_all(Elm_Radio_Smart_Data *sd) Eina_Bool disabled = EINA_FALSE; Evas_Object *child, *selected = NULL; - EINA_LIST_FOREACH (sd->group->radios, l, child) + EINA_LIST_FOREACH(sd->group->radios, l, child) { ELM_RADIO_DATA_GET(child, sdc); @@ -442,7 +442,7 @@ elm_radio_selected_object_get(Evas_Object *obj) ELM_RADIO_CHECK(obj) NULL; ELM_RADIO_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->group->radios, l, child) + EINA_LIST_FOREACH(sd->group->radios, l, child) { ELM_RADIO_DATA_GET(child, sdc); diff --git a/legacy/elementary/src/lib/elm_route.c b/legacy/elementary/src/lib/elm_route.c index c90b74ad84..0d9006c6b1 100644 --- a/legacy/elementary/src/lib/elm_route.c +++ b/legacy/elementary/src/lib/elm_route.c @@ -41,7 +41,7 @@ _sizing_eval(Evas_Object *obj) evas_object_geometry_get(obj, &x, &y, &w, &h); - EINA_LIST_FOREACH (sd->segments, l, segment) + EINA_LIST_FOREACH(sd->segments, l, segment) { if (sd->must_calc_segments || segment->must_calc) { @@ -231,7 +231,7 @@ elm_route_emap_set(Evas_Object *obj, _clear_route(obj); - EINA_LIST_FOREACH (emap_route_nodes_get(sd->emap), l, node) + EINA_LIST_FOREACH(emap_route_nodes_get(sd->emap), l, node) { if (node_prev) { diff --git a/legacy/elementary/src/lib/elm_scroller.c b/legacy/elementary/src/lib/elm_scroller.c index 7cdac946b9..62f24da716 100644 --- a/legacy/elementary/src/lib/elm_scroller.c +++ b/legacy/elementary/src/lib/elm_scroller.c @@ -96,7 +96,7 @@ _elm_scroller_smart_event(Evas_Object *obj, Evas_Object *cur; double weight = 0.0; - EINA_LIST_FOREACH (can_focus_list, l, cur) + EINA_LIST_FOREACH(can_focus_list, l, cur) { double cur_weight = 0.0; diff --git a/legacy/elementary/src/lib/elm_segment_control.c b/legacy/elementary/src/lib/elm_segment_control.c index 12f6135601..f4f92038a2 100644 --- a/legacy/elementary/src/lib/elm_segment_control.c +++ b/legacy/elementary/src/lib/elm_segment_control.c @@ -71,7 +71,7 @@ _position_items(Elm_Segment_Control_Smart_Data *sd) if (rtl) pos = bx + bw - sd->item_width; else pos = bx; - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { evas_object_move(VIEW(it), pos, by); evas_object_resize(VIEW(it), sd->item_width, bh); @@ -143,7 +143,7 @@ _update_list(Elm_Segment_Control_Smart_Data *sd) } rtl = elm_widget_mirrored_get(ELM_WIDGET_DATA(sd)->obj); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { it->seg_index = idx; @@ -200,7 +200,7 @@ _elm_segment_control_smart_theme(Evas_Object *obj) rtl = elm_widget_mirrored_get(obj); - EINA_LIST_FOREACH (sd->items, l, it) + EINA_LIST_FOREACH(sd->items, l, it) { elm_widget_theme_object_set (obj, VIEW(it), "segment_control", "item", diff --git a/legacy/elementary/src/lib/elm_spinner.c b/legacy/elementary/src/lib/elm_spinner.c index 24a84b75c5..4f25696765 100644 --- a/legacy/elementary/src/lib/elm_spinner.c +++ b/legacy/elementary/src/lib/elm_spinner.c @@ -70,7 +70,7 @@ _label_write(Evas_Object *obj) ELM_SPINNER_DATA_GET(obj, sd); - EINA_LIST_FOREACH (sd->special_values, l, sv) + EINA_LIST_FOREACH(sd->special_values, l, sv) { if (sv->value == sd->val) { diff --git a/legacy/elementary/src/lib/elm_thumb.c b/legacy/elementary/src/lib/elm_thumb.c index e45f9f1e47..e7695e1c40 100644 --- a/legacy/elementary/src/lib/elm_thumb.c +++ b/legacy/elementary/src/lib/elm_thumb.c @@ -268,7 +268,7 @@ _thumb_finish(Elm_Thumb_Smart_Data *sd, _thumb_ready_inform(sd, thumb_path, thumb_key); - EINA_LIST_FOREACH_SAFE (retry, l, ll, sd) + EINA_LIST_FOREACH_SAFE(retry, l, ll, sd) { if (_thumb_retry(sd)) retry = eina_list_remove_list(retry, l); diff --git a/legacy/elementary/src/lib/elm_web.c b/legacy/elementary/src/lib/elm_web.c index 6f97c94440..d44d3043e4 100644 --- a/legacy/elementary/src/lib/elm_web.c +++ b/legacy/elementary/src/lib/elm_web.c @@ -77,7 +77,7 @@ _webkit_theme_find(const Eina_List *list) const Eina_List *l; const char *th; - EINA_LIST_FOREACH (list, l, th) + EINA_LIST_FOREACH(list, l, th) { char *path = elm_theme_list_item_path_get(th, NULL); @@ -927,7 +927,7 @@ _popup_item_selected(void *data, int i = 0; void *d; - EINA_LIST_FOREACH (list, itr, d) + EINA_LIST_FOREACH(list, itr, d) { if (d == list_it) break; @@ -982,7 +982,7 @@ _ewk_view_popup_create_cb(void *data, elm_object_content_set(notify, list); evas_object_show(list); - EINA_LIST_FOREACH (m->items, itr, it) + EINA_LIST_FOREACH(m->items, itr, it) elm_list_item_append(list, it->text, NULL, NULL, _popup_item_selected, obj); elm_list_go(list); diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index b5f228d8e6..c4b34b47fa 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -348,7 +348,7 @@ _elm_widget_sub_object_del_func(Evas_Object *obj, ELM_WIDGET_DATA_GET(parent, sdp); sdp->child_can_focus = EINA_FALSE; - EINA_LIST_FOREACH (sdp->subobjs, l, subobj) + EINA_LIST_FOREACH(sdp->subobjs, l, subobj) { if ((subobj != sobj) && (_is_focusable(subobj))) { @@ -436,7 +436,7 @@ _newest_focus_order_get(Evas_Object *obj, *newest_focus_order = sd->focus_order; best = obj; } - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { ret = _newest_focus_order_get (child, newest_focus_order, can_focus_only); @@ -1027,7 +1027,7 @@ elm_widget_access(Evas_Object *obj, Eina_Bool ret = EINA_TRUE; API_ENTRY return EINA_FALSE; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) ret &= elm_widget_access(child, is_access); if (sd->api && sd->api->access) @@ -1099,13 +1099,13 @@ elm_widget_theme_specific(Evas_Object *obj, } } if (!force) return; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) elm_widget_theme_specific(child, th, force); if (sd->resize_obj) elm_widget_theme(sd->resize_obj); if (sd->hover_obj) elm_widget_theme(sd->hover_obj); - EINA_LIST_FOREACH (sd->tooltips, l, tt) + EINA_LIST_FOREACH(sd->tooltips, l, tt) elm_tooltip_theme(tt); - EINA_LIST_FOREACH (sd->cursors, l, cur) + EINA_LIST_FOREACH(sd->cursors, l, cur) elm_cursor_theme(cur); if (!sd->api) return; sd->api->theme(obj); @@ -1424,7 +1424,7 @@ elm_widget_can_focus_child_list_get(const Evas_Object *obj) if (sd->subobjs) { - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { if ((elm_widget_can_focus_get(child)) && (evas_object_visible_get(child)) && @@ -1488,7 +1488,7 @@ elm_widget_focused_object_get(const Evas_Object *obj) API_ENTRY return NULL; if (!sd->focused) return NULL; - EINA_LIST_FOREACH (sd->subobjs, l, subobj) + EINA_LIST_FOREACH(sd->subobjs, l, subobj) { Evas_Object *fobj = elm_widget_focused_object_get(subobj); if (fobj) return fobj; @@ -1578,7 +1578,7 @@ elm_widget_event_callback_del(Evas_Object *obj, EINA_SAFETY_ON_NULL_RETURN_VAL(func, NULL); Eina_List *l; Elm_Event_Cb_Data *ecd; - EINA_LIST_FOREACH (sd->event_cb, l, ecd) + EINA_LIST_FOREACH(sd->event_cb, l, ecd) if ((ecd->func == func) && (ecd->data == data)) { free(ecd); @@ -1612,7 +1612,7 @@ elm_widget_event_propagate(Evas_Object *obj, if (sd->api->event(parent, obj, type, event_info)) return EINA_TRUE; - EINA_LIST_FOREACH_SAFE (sd->event_cb, l, l_prev, ecd) + EINA_LIST_FOREACH_SAFE(sd->event_cb, l, l_prev, ecd) { if (ecd->func((void *)ecd->data, parent, obj, type, event_info) || (event_flags && ((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD))) @@ -1652,7 +1652,7 @@ elm_widget_focus_custom_chain_set(Evas_Object *obj, Eina_List *l; Evas_Object *o; - EINA_LIST_FOREACH (objs, l, o) + EINA_LIST_FOREACH(objs, l, o) { evas_object_event_callback_add(o, EVAS_CALLBACK_DEL, _elm_object_focus_chain_del_cb, sd); @@ -1691,7 +1691,7 @@ elm_widget_focus_custom_chain_unset(Evas_Object *obj) Eina_List *l, *l_next; Evas_Object *o; - EINA_LIST_FOREACH_SAFE (sd->focus_chain, l, l_next, o) + EINA_LIST_FOREACH_SAFE(sd->focus_chain, l, l_next, o) { evas_object_event_callback_del_full(o, EVAS_CALLBACK_DEL, _elm_object_focus_chain_del_cb, sd); @@ -2521,7 +2521,7 @@ elm_widget_focus_set(Evas_Object *obj, const Eina_List *l; Evas_Object *child; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { if ((_is_focusable(child)) && (!elm_widget_disabled_get(child))) @@ -2537,7 +2537,7 @@ elm_widget_focus_set(Evas_Object *obj, const Eina_List *l; Evas_Object *child; - EINA_LIST_REVERSE_FOREACH (sd->subobjs, l, child) + EINA_LIST_REVERSE_FOREACH(sd->subobjs, l, child) { if ((_is_focusable(child)) && (!elm_widget_disabled_get(child))) @@ -2578,7 +2578,7 @@ elm_widget_focused_object_clear(Evas_Object *obj) { const Eina_List *l; Evas_Object *child; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { if (elm_widget_focus_get(child)) { @@ -2628,7 +2628,7 @@ elm_widget_focus_steal(Evas_Object *obj) { const Eina_List *l; Evas_Object *child; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { if (elm_widget_focus_get(child)) { @@ -2669,7 +2669,7 @@ _elm_widget_top_win_focused_set(Evas_Object *obj, if (sd->top_win_focused == top_win_focused) return; if (sd->resize_obj) _elm_widget_top_win_focused_set(sd->resize_obj, top_win_focused); - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { _elm_widget_top_win_focused_set(child, top_win_focused); } @@ -2818,7 +2818,7 @@ elm_widget_scrollable_children_get(Evas_Object *obj) API_ENTRY return NULL; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { if (_elm_scrollable_is(child)) ret = eina_list_append(ret, child); @@ -2845,7 +2845,7 @@ elm_widget_scroll_hold_push(Evas_Object *obj) Evas_Object *child; scr_children = elm_widget_scrollable_children_get(obj); - EINA_LIST_FOREACH (scr_children, l, child) + EINA_LIST_FOREACH(scr_children, l, child) { ELM_SCROLLABLE_IFACE_GET(child, s_iface); s_iface->hold_set(child, EINA_TRUE); @@ -2875,7 +2875,7 @@ elm_widget_scroll_hold_pop(Evas_Object *obj) Evas_Object *child; scr_children = elm_widget_scrollable_children_get(obj); - EINA_LIST_FOREACH (scr_children, l, child) + EINA_LIST_FOREACH(scr_children, l, child) { ELM_SCROLLABLE_IFACE_GET(child, s_iface); s_iface->hold_set(child, EINA_FALSE); @@ -2912,7 +2912,7 @@ elm_widget_scroll_freeze_push(Evas_Object *obj) Evas_Object *child; scr_children = elm_widget_scrollable_children_get(obj); - EINA_LIST_FOREACH (scr_children, l, child) + EINA_LIST_FOREACH(scr_children, l, child) { ELM_SCROLLABLE_IFACE_GET(child, s_iface); s_iface->freeze_set(child, EINA_TRUE); @@ -2942,7 +2942,7 @@ elm_widget_scroll_freeze_pop(Evas_Object *obj) Evas_Object *child; scr_children = elm_widget_scrollable_children_get(obj); - EINA_LIST_FOREACH (scr_children, l, child) + EINA_LIST_FOREACH(scr_children, l, child) { ELM_SCROLLABLE_IFACE_GET(child, s_iface); s_iface->freeze_set(child, EINA_FALSE); @@ -3038,7 +3038,7 @@ elm_widget_domain_translatable_text_part_set(Evas_Object *obj, API_ENTRY return; str = eina_stringshare_add(part); - EINA_LIST_FOREACH (sd->translate_strings, l, ts) + EINA_LIST_FOREACH(sd->translate_strings, l, ts) if (ts->id == str) break; else @@ -3092,7 +3092,7 @@ elm_widget_translatable_text_part_get(const Evas_Object *obj, API_ENTRY return NULL; str = eina_stringshare_add(part); - EINA_LIST_FOREACH (sd->translate_strings, l, ts) + EINA_LIST_FOREACH(sd->translate_strings, l, ts) if (ts->id == str) { ret = ts->string; @@ -3113,7 +3113,7 @@ elm_widget_translate(Evas_Object *obj) API_ENTRY return; - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) elm_widget_translate(child); if (sd->resize_obj) elm_widget_translate(sd->resize_obj); if (sd->hover_obj) elm_widget_translate(sd->hover_obj); @@ -3121,7 +3121,7 @@ elm_widget_translate(Evas_Object *obj) sd->api->translate(obj); #ifdef HAVE_GETTEXT - EINA_LIST_FOREACH (sd->translate_strings, l, ts) + EINA_LIST_FOREACH(sd->translate_strings, l, ts) { const char *s = dgettext(ts->domain, ts->string); elm_widget_text_part_set(obj, ts->id, s); @@ -3385,7 +3385,7 @@ _widget_name_find(const Evas_Object *obj, ((child = _widget_name_find(sd->resize_obj, name, recurse - 1)))) return child; } - EINA_LIST_FOREACH (sd->subobjs, l, child) + EINA_LIST_FOREACH(sd->subobjs, l, child) { s = evas_object_name_get(child); if ((s) && (!strcmp(s, name))) return child; @@ -4283,7 +4283,7 @@ _sub_obj_tree_dump(const Evas_Object *obj, obj); if (sd->resize_obj) _sub_obj_tree_dump(sd->resize_obj, lvl + 1); - EINA_LIST_FOREACH (sd->subobjs, l, obj) + EINA_LIST_FOREACH(sd->subobjs, l, obj) { if (obj != sd->resize_obj) _sub_obj_tree_dump(obj, lvl + 1); @@ -4338,7 +4338,7 @@ _sub_obj_tree_dot_dump(const Evas_Object *obj, Eina_List *l; Evas_Object *o; - EINA_LIST_FOREACH (sd->subobjs, l, o) + EINA_LIST_FOREACH(sd->subobjs, l, o) _sub_obj_tree_dot_dump(o, output); }