yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=322fd329eae7697b2b77c6b3b999aa9823e19239
commit 322fd329eae7697b2b77c6b3b999aa9823e19239 Author: Yakov Goldberg <yako...@samsung.com> Date: Wed Dec 9 17:03:13 2015 +0200 Set default path for fileselector in OPEN mode Default path in OPEN mode is last dir used for current project --- src/bin/gui/editor.c | 3 ++- src/bin/gui/egui_logic.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c index 4ebb339..c20e0a7 100644 --- a/src/bin/gui/editor.c +++ b/src/bin/gui/editor.c @@ -483,7 +483,7 @@ _editor_wdg_selected_set(const Gui_Widget *wdg) /* During context call _win_resize() will be called. * It will draw border around win, but widget was not selected yet. * So need to hide border. */ - _wdg_border_draw(NULL, EINA_FALSE, BORDER_SELECTION); + //_wdg_border_draw(NULL, EINA_FALSE, BORDER_SELECTION); } /* Show new border*/ @@ -4457,6 +4457,7 @@ Eina_Bool _wdg_border_draw_on_idle(void *data EINA_UNUSED) { const Gui_Widget *wdg = _editor_wdg_selected_get(); + ERR("%p", wdg); if (wdg) { _wdg_border_draw(wdg, EINA_TRUE, BORDER_SELECTION); diff --git a/src/bin/gui/egui_logic.c b/src/bin/gui/egui_logic.c index 78bcfcf..6fea9f5 100644 --- a/src/bin/gui/egui_logic.c +++ b/src/bin/gui/egui_logic.c @@ -512,6 +512,7 @@ _fs_mode_open(int fs_mode) eo_do(fs_win->fs_radio_box, efl_gfx_visible_set(EINA_TRUE)); eo_do(fs_win->fileselector, elm_interface_fileselector_is_save_set(EINA_TRUE)); fs_path = gui_context_export_path_get(ctx); + if (!fs_path) fs_path = gui_context_project_path_get(ctx); fs_file = gui_context_export_filename_get(ctx); break; } @@ -531,6 +532,7 @@ _fs_mode_open(int fs_mode) } case ITEM_OPEN: { + if (ctx) fs_path = gui_context_project_path_get(ctx); break; } default: --