forked from enlightenment/enlightenment
parent
7058a7d2dc
commit
f1cf500e9c
|
@ -139,7 +139,8 @@ e_ilist_append(Evas_Object *obj, Evas_Object *icon, Evas_Object *end, const char
|
|||
if (stacking)
|
||||
{
|
||||
if (!strcmp(stacking, "below")) evas_object_lower(si->o_base);
|
||||
else if (!strcmp(stacking, "above")) evas_object_raise(si->o_base);
|
||||
else if (!strcmp(stacking, "above"))
|
||||
evas_object_raise(si->o_base);
|
||||
}
|
||||
e_box_thaw(sd->o_box);
|
||||
|
||||
|
@ -238,7 +239,8 @@ e_ilist_append_relative(Evas_Object *obj, Evas_Object *icon, Evas_Object *end, c
|
|||
if (stacking)
|
||||
{
|
||||
if (!strcmp(stacking, "below")) evas_object_lower(si->o_base);
|
||||
else if (!strcmp(stacking, "above")) evas_object_raise(si->o_base);
|
||||
else if (!strcmp(stacking, "above"))
|
||||
evas_object_raise(si->o_base);
|
||||
}
|
||||
e_box_thaw(sd->o_box);
|
||||
|
||||
|
@ -505,7 +507,8 @@ e_ilist_selected_set(Evas_Object *obj, int n)
|
|||
|
||||
i = eina_list_count(sd->items);
|
||||
if (n >= i) n = i - 1;
|
||||
else if (n < 0) n = 0;
|
||||
else if (n < 0)
|
||||
n = 0;
|
||||
|
||||
EINA_LIST_FOREACH(sd->items, l, si)
|
||||
{
|
||||
|
@ -877,7 +880,8 @@ e_ilist_multi_select(Evas_Object *obj, int n)
|
|||
|
||||
i = eina_list_count(sd->items);
|
||||
if (n >= i) n = i - 1;
|
||||
else if (n < 0) n = 0;
|
||||
else if (n < 0)
|
||||
n = 0;
|
||||
|
||||
if (!(si = eina_list_nth(sd->items, n))) return;
|
||||
if (si->header) return;
|
||||
|
@ -912,7 +916,8 @@ e_ilist_range_select(Evas_Object *obj, int n)
|
|||
|
||||
i = eina_list_count(sd->items);
|
||||
if (n >= i) n = i - 1;
|
||||
else if (n < 0) n = 0;
|
||||
else if (n < 0)
|
||||
n = 0;
|
||||
|
||||
if (n < sd->selected) dir = 0;
|
||||
else dir = 1;
|
||||
|
@ -1432,3 +1437,4 @@ _item_unselect(E_Ilist_Item *si)
|
|||
evas_object_lower(si->o_base);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue