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:
Chidambar Zinnoury 2008-10-19 13:34:47 +00:00
parent 6130107b77
commit edc86d39cc
1 changed files with 4 additions and 0 deletions

View File

@ -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;