From: Enlightenment S. <no-...@en...> - 2008-11-28 21:06:32
|
Log: While selecting using rubberband on file manager, select also when text is contained, not only icon. Author: illogict Date: 2008-11-28 13:06:28 -0800 (Fri, 28 Nov 2008) New Revision: 37844 Modified: trunk/e/src/bin/e_fm.c Modified: trunk/e/src/bin/e_fm.c =================================================================== --- trunk/e/src/bin/e_fm.c 2008-11-28 20:26:03 UTC (rev 37843) +++ trunk/e/src/bin/e_fm.c 2008-11-28 21:06:28 UTC (rev 37844) @@ -5832,11 +5832,16 @@ { 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) { |