While selecting using rubberband on file manager, select also when text is contained, not only icon.

SVN revision: 37844
This commit is contained in:
Chidambar Zinnoury 2008-11-28 21:06:28 +00:00
parent c30fa04e8d
commit 4d2001bed6
1 changed files with 6 additions and 1 deletions

View File

@ -5832,11 +5832,16 @@ _e_fm2_cb_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
E_Fm2_Icon *ic;
int ix, iy, iw, ih;
int ix_t, iy_t, iw_t, ih_t;
ic = l->data;
if (!ic) continue;
evas_object_geometry_get(ic->obj_icon, &ix, &iy, &iw, &ih);
if E_INTERSECTS(x, y, w, h, ix, iy, iw, ih)
evas_object_geometry_get(edje_object_part_object_get(ic->obj,
"e.text.label"),
&ix_t, &iy_t, &iw_t, &ih_t);
if (E_INTERSECTS(x, y, w, h, ix, iy, iw, ih) ||
E_INTERSECTS(x, y, w, h, ix_t, iy_t, iw_t, ih_t))
{
if (!ic->selected)
{