diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2013-12-02 16:18:05 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2013-12-02 16:18:05 -0500 |
commit | b7fb8e7f8d87e1ceb42f40b726aee1873ea61990 (patch) | |
tree | 4791b744ff44656ff6829e4e10c8d529a45812d3 | |
parent | 479bb201e30549a3c0bd4d8267f591238b9c4037 (diff) | |
download | enlightenment-b7fb8e7f8d87e1ceb42f40b726aee1873ea61990.tar.gz |
ensmallen efm icon event area
previously it was impossible to click between icons. now it is.
T377
-rw-r--r-- | src/bin/e_fm.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index f8812d54c0..e2c509a2d2 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -4795,14 +4795,26 @@ _e_fm2_icon_label_click(void *data, Evas_Object *obj __UNUSED__, const char *emi static void _e_fm2_icon_position(E_Fm2_Icon *ic) { + Eina_Bool list = _e_fm2_view_mode_get(ic->sd) == E_FM2_VIEW_MODE_LIST; evas_object_move(ic->obj, ic->sd->x + ic->x - ic->sd->pos.x, ic->sd->y + ic->y - ic->sd->pos.y); evas_object_resize(ic->obj, ic->w, ic->h); - evas_object_move(ic->rect, - ic->sd->x + ic->x - ic->sd->pos.x, - ic->sd->y + ic->y - ic->sd->pos.y); - evas_object_resize(ic->rect, ic->w, ic->h); + if (list) + { + /* only resize vertically for list view */ + evas_object_move(ic->rect, + ic->sd->x + ic->x - ic->sd->pos.x, + ic->sd->y + ic->y - ic->sd->pos.y + (0.1 * ic->h)); + evas_object_resize(ic->rect, ic->w, ic->h * 0.8); + } + else + { + evas_object_move(ic->rect, + ic->sd->x + ic->x - ic->sd->pos.x + (0.1 * ic->w), + ic->sd->y + ic->y - ic->sd->pos.y + (0.1 * ic->h)); + evas_object_resize(ic->rect, ic->w * 0.8, ic->h * 0.8); + } } static void |