Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_widget_fsel.c 


Log Message:
No // when browsing /

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_fsel.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_widget_fsel.c     23 Jul 2006 11:22:13 -0000      1.2
+++ e_widget_fsel.c     28 Jul 2006 12:02:38 -0000      1.3
@@ -114,6 +114,7 @@
    E_Widget_Data *wd;
    Evas_List *selected;
    E_Fm2_Icon_Info *ici;
+   const char *realpath;
    char buf[4096];
    
    wd = data;
@@ -121,8 +122,16 @@
    if (!selected) return;
    ici = selected->data;
    E_FREE(wd->path);
-   snprintf(buf, sizeof(buf), "%s/%s",
-           e_fm2_real_path_get(wd->o_files_fm), ici->file);
+   realpath = e_fm2_real_path_get(wd->o_files_fm);
+   if (!strcmp(realpath, "/"))
+     {
+       snprintf(buf, sizeof(buf), "/%s", ici->file);
+     }
+   else
+     {
+       snprintf(buf, sizeof(buf), "%s/%s",
+                realpath, ici->file);
+     }
    wd->path = strdup(buf);
    e_widget_entry_text_set(wd->o_entry, ici->file);
    evas_list_free(selected);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to