fileselector: fix typo + behavior
authorYakov Goldberg <yakov.g@samsung.com>
Thu, 18 Jul 2013 14:46:56 +0000 (17:46 +0300)
committerYakov Goldberg <yakov.g@samsung.com>
Tue, 6 Aug 2013 08:17:40 +0000 (11:17 +0300)
 - _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.

src/lib/elc_fileselector.c

index 0c5e10b..6669fb5 100644 (file)
@@ -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