forked from enlightenment/enlightenment
parent
3ed71448aa
commit
c2abf24bc6
|
@ -1016,18 +1016,20 @@ _e_fm_selections_add_rect(E_Fileman_Smart_Data *sd, Evas_Coord x, Evas_Coord y,
|
||||||
evas_object_geometry_get(file->icon, &xx, &yy, &ww, &hh);
|
evas_object_geometry_get(file->icon, &xx, &yy, &ww, &hh);
|
||||||
if (E_INTERSECTS(x, y, w, h, xx, yy, ww, hh))
|
if (E_INTERSECTS(x, y, w, h, xx, yy, ww, hh))
|
||||||
{
|
{
|
||||||
if(!evas_list_find(file->sd->selection.band.files, file))
|
if (!evas_list_find(file->sd->selection.band.files, file))
|
||||||
{
|
{
|
||||||
if(file->state.selected)
|
if (file->state.selected)
|
||||||
_e_fm_selections_del(file);
|
_e_fm_selections_del(file);
|
||||||
else
|
else
|
||||||
_e_fm_selections_add(file);
|
_e_fm_selections_add(file);
|
||||||
file->sd->selection.band.files = evas_list_append(file->sd->selection.band.files, file);
|
file->sd->selection.band.files = evas_list_append(file->sd->selection.band.files, file);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
if(evas_list_find(file->sd->selection.band.files, file))
|
else
|
||||||
{
|
{
|
||||||
if(file->state.selected)
|
if (evas_list_find(file->sd->selection.band.files, file))
|
||||||
|
{
|
||||||
|
if (file->state.selected)
|
||||||
_e_fm_selections_del(file);
|
_e_fm_selections_del(file);
|
||||||
else
|
else
|
||||||
_e_fm_selections_add(file);
|
_e_fm_selections_add(file);
|
||||||
|
|
Loading…
Reference in New Issue