From: hermet Date: Tue, 31 Jan 2012 05:13:59 +0000 (+0000) Subject: elementary/fileselector - fixed a wrong change caused when gengrid API changes. X-Git-Tag: REL_F_I9500_20120323_1~17^2~804 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daa167b26b52dd572efca82e67de32ad01145590;p=framework%2Fuifw%2Felementary.git elementary/fileselector - fixed a wrong change caused when gengrid API changes. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67627 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index f581762..57075f9 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -419,14 +419,15 @@ _sel(void *data, Widget_Data *wd; void *old_sd; char *dir; - Elm_Object_Item *gg_it = event_info; + //This event_info could be a list or gengrid item + Elm_Object_Item *it = event_info; wd = elm_widget_data_get(data); if (!wd) return; sd = malloc(sizeof(*sd)); sd->fs = data; - sd->path = wd->mode == elm_object_item_data_get(gg_it); + sd->path = elm_object_item_data_get(it); if (!sd->path) {