yakov pushed a commit to branch master.

commit 92840e8242b058902ce151ef33dd80b862b4856e
Author: Yakov Goldberg <[email protected]>
Date:   Thu Jul 18 17:46:56 2013 +0300

    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.
---
 src/lib/elc_fileselector.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 0c5e10b..6669fb5 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

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to