hmm more select issues - put in hilights
SVN revision: 40724
This commit is contained in:
parent
47b9b5bcfe
commit
b68636289b
|
@ -282,7 +282,11 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
if (it->disabled) return;
|
if (it->disabled) return;
|
||||||
if (it->wd->multi)
|
if (it->wd->multi)
|
||||||
{
|
{
|
||||||
if (!it->selected) _item_select(it);
|
if (!it->selected)
|
||||||
|
{
|
||||||
|
_item_hilight(it);
|
||||||
|
_item_select(it);
|
||||||
|
}
|
||||||
else _item_unselect(it);
|
else _item_unselect(it);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -292,6 +296,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
Widget_Data *wd = it->wd;
|
Widget_Data *wd = it->wd;
|
||||||
while (wd->selected)
|
while (wd->selected)
|
||||||
_item_unselect(wd->selected->data);
|
_item_unselect(wd->selected->data);
|
||||||
|
_item_hilight(it);
|
||||||
_item_select(it);
|
_item_select(it);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -300,6 +305,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
Elm_Genlist_Item *it2;
|
Elm_Genlist_Item *it2;
|
||||||
EINA_LIST_FOREACH_SAFE(it->wd->selected, l, l_next, it2)
|
EINA_LIST_FOREACH_SAFE(it->wd->selected, l, l_next, it2)
|
||||||
if (it2 != it) _item_unselect(it2);
|
if (it2 != it) _item_unselect(it2);
|
||||||
|
_item_hilight(it);
|
||||||
_item_select(it);
|
_item_select(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,11 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
}
|
}
|
||||||
if (wd->multi)
|
if (wd->multi)
|
||||||
{
|
{
|
||||||
if (!it->selected) _item_select(it);
|
if (!it->selected)
|
||||||
|
{
|
||||||
|
_item_hilight(it);
|
||||||
|
_item_select(it);
|
||||||
|
}
|
||||||
else _item_unselect(it);
|
else _item_unselect(it);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -220,6 +224,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
{
|
{
|
||||||
while (wd->selected)
|
while (wd->selected)
|
||||||
_item_unselect(wd->selected->data);
|
_item_unselect(wd->selected->data);
|
||||||
|
_item_hilight(it);
|
||||||
_item_select(it);
|
_item_select(it);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -228,6 +233,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||||
Elm_List_Item *it2;
|
Elm_List_Item *it2;
|
||||||
EINA_LIST_FOREACH_SAFE(wd->selected, l, l_next, it2)
|
EINA_LIST_FOREACH_SAFE(wd->selected, l, l_next, it2)
|
||||||
if (it2 != it) _item_unselect(it2);
|
if (it2 != it) _item_unselect(it2);
|
||||||
|
_item_hilight(it);
|
||||||
_item_select(it);
|
_item_select(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue