Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_filepicker.c Log Message: Now when you change the directory the path combo actually updates to show it. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -3 -r1.42 -r1.43 --- ewl_filepicker.c 11 Dec 2007 21:38:33 -0000 1.42 +++ ewl_filepicker.c 30 Dec 2007 19:34:40 -0000 1.43 @@ -718,6 +718,7 @@ ecore_list_prepend(fp->path, strdup(path)); ewl_mvc_dirty_set(EWL_MVC(fp->mvc_path.combo), TRUE); + ewl_mvc_selected_set(EWL_MVC(fp->mvc_path.combo), NULL, fp->path, 0, 0); DLEAVE_FUNCTION(DLEVEL_STABLE); } @@ -736,9 +737,16 @@ fp = data; idx = ewl_mvc_selected_get(EWL_MVC(w)); - ecore_list_index_goto(fp->path, idx->row); + if (idx->row == 0) + { + free(idx); + DRETURN(DLEVEL_STABLE); + } + + ecore_list_index_goto(fp->path, idx->row); ewl_filepicker_directory_set(fp, ecore_list_current(fp->path)); + free(idx); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs