diff options
author | Yakov Goldberg <yakov.g@samsung.com> | 2013-07-18 17:46:56 +0300 |
---|---|---|
committer | Yakov Goldberg <yakov.g@samsung.com> | 2013-08-06 11:17:40 +0300 |
commit | 92840e8242b058902ce151ef33dd80b862b4856e (patch) | |
tree | 48bab6f9b4bb4e5b5bc3b3b04579fa2073e2b2fa /src/lib/elc_fileselector.c | |
parent | 05aed0fefde3638d5afdb5156e230af7ea2b7d23 (diff) | |
download | elementary-92840e8242b058902ce151ef33dd80b862b4856e.tar.gz |
fileselector: fix typo + behavior
- _anchors_do() receive fileselector object as first parameter,
in _on_text_unfocused cb fileselector passed as 'data' and not as
'obj';
- when entry is unfocused, it can contain usual text or anchor-styled text,
so the only secure way to pass path is to pass sd->path.
Diffstat (limited to 'src/lib/elc_fileselector.c')
-rw-r--r-- | src/lib/elc_fileselector.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index 0c5e10b49..6669fb51f 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -788,11 +788,12 @@ _on_text_activated(void *data, } static void -_on_text_unfocused(void *data __UNUSED__, - Evas_Object *obj, +_on_text_unfocused(void *data, + Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { - _anchors_do(obj, elm_object_text_get(obj)); + ELM_FILESELECTOR_DATA_GET(data, sd); + _anchors_do(data, sd->path); } static void |