forked from enlightenment/enlightenment
For the moment, when try to select an header, loop over next elements until we find a non-header, if not, loop over previous ones, and select found element. Useful for me dialogs where we remove elements.
SVN revision: 36814
This commit is contained in:
parent
6130107b77
commit
edc86d39cc
|
@ -460,6 +460,10 @@ e_ilist_selected_set(Evas_Object *obj, int n)
|
|||
if (!(si = evas_list_nth(sd->items, n))) return;
|
||||
|
||||
/* NB: Remove this if headers ever become selectable */
|
||||
while (si->header && ((++ n) < i))
|
||||
if (!(si = evas_list_nth(sd->items, n))) return;
|
||||
while (si->header && ((-- n) >= 0))
|
||||
if (!(si = evas_list_nth(sd->items, n))) return;
|
||||
if (si->header) return;
|
||||
|
||||
si->selected = 1;
|
||||
|
|
Loading…
Reference in New Issue