summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-12-01 11:28:04 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-12-01 11:32:19 +0900
commit70f39cf3f029037ddd6ea21436a21b02aa00910b (patch)
treec1d34e192a2b053a961f901d3a37b211733a7e12 /src/lib/elementary/elc_ctxpopup.c
parente0827a6a90acde0418f7375b5026fea5f3bb0408 (diff)
ctxpopup: Fix shadow variable warning
Diffstat (limited to 'src/lib/elementary/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index aeba54f..506569b 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1281,14 +1281,14 @@ static void
1281_item_wrap_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1281_item_wrap_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
1282{ 1282{
1283 Elm_Ctxpopup_Item_Data *item = data; 1283 Elm_Ctxpopup_Item_Data *item = data;
1284 Elm_Object_Item *eo_item2;
1284 Eina_List *l; 1285 Eina_List *l;
1285 Elm_Object_Item *eo_item;
1286 1286
1287 ELM_CTXPOPUP_DATA_GET_OR_RETURN(item->wcb.cobj, sd); 1287 ELM_CTXPOPUP_DATA_GET_OR_RETURN(item->wcb.cobj, sd);
1288 EINA_LIST_FOREACH(sd->items, l, eo_item) 1288 EINA_LIST_FOREACH(sd->items, l, eo_item2)
1289 { 1289 {
1290 ELM_CTXPOPUP_ITEM_DATA_GET(eo_item, item); 1290 ELM_CTXPOPUP_ITEM_DATA_GET(eo_item2, item2);
1291 item->selected = EINA_FALSE; 1291 item2->selected = EINA_FALSE;
1292 } 1292 }
1293 item->selected = EINA_TRUE; 1293 item->selected = EINA_TRUE;
1294 1294
@@ -1465,21 +1465,21 @@ _elm_ctxpopup_item_efl_ui_item_next_get(Eo *eo_item EINA_UNUSED, Elm_Ctxpopup_It
1465 1465
1466EOLIAN static void 1466EOLIAN static void
1467_elm_ctxpopup_item_efl_ui_item_selected_set(Eo *eo_item EINA_UNUSED, 1467_elm_ctxpopup_item_efl_ui_item_selected_set(Eo *eo_item EINA_UNUSED,
1468 Elm_Ctxpopup_Item_Data *item, 1468 Elm_Ctxpopup_Item_Data *item,
1469 Eina_Bool selected) 1469 Eina_Bool selected)
1470{ 1470{
1471 Elm_Object_Item *eo_item2;
1471 Eina_List *l; 1472 Eina_List *l;
1472 Elm_Object_Item *temp_item;
1473 1473
1474 if (selected == item->selected) return; 1474 if (selected == item->selected) return;
1475 1475
1476 if (selected) 1476 if (selected)
1477 { 1477 {
1478 ELM_CTXPOPUP_DATA_GET_OR_RETURN(item->wcb.cobj, sd); 1478 ELM_CTXPOPUP_DATA_GET_OR_RETURN(item->wcb.cobj, sd);
1479 EINA_LIST_FOREACH(sd->items, l, temp_item) 1479 EINA_LIST_FOREACH(sd->items, l, eo_item2)
1480 { 1480 {
1481 ELM_CTXPOPUP_ITEM_DATA_GET(temp_item, item); 1481 ELM_CTXPOPUP_ITEM_DATA_GET(eo_item2, item2);
1482 item->selected = EINA_FALSE; 1482 item2->selected = EINA_FALSE;
1483 } 1483 }
1484 } 1484 }
1485 elm_list_item_selected_set(item->list_item, selected); 1485 elm_list_item_selected_set(item->list_item, selected);