Fix the current directory when one hasn't been provided.
SVN revision: 56943
This commit is contained in:
parent
c9c56e117d
commit
4ef79b29a5
|
@ -35,15 +35,6 @@ ephoto_window_add(void)
|
|||
elm_win_resize_object_add(ephoto->win, ephoto->pager);
|
||||
evas_object_show(ephoto->pager);
|
||||
|
||||
ephoto->flow_browser = ephoto_flow_browser_add();
|
||||
elm_pager_content_push(ephoto->pager, ephoto->flow_browser);
|
||||
|
||||
ephoto->thumb_browser = ephoto_thumb_browser_add();
|
||||
elm_pager_content_push(ephoto->pager, ephoto->thumb_browser);
|
||||
|
||||
elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser);
|
||||
ephoto->state = EPHOTO_STATE_THUMB;
|
||||
|
||||
if (!ephoto->directory && !ephoto->file)
|
||||
{
|
||||
char buf[PATH_MAX], *cwd;
|
||||
|
@ -53,6 +44,15 @@ ephoto_window_add(void)
|
|||
else if (ephoto->file)
|
||||
ephoto->directory = eina_stringshare_add(ecore_file_dir_get(ephoto->file));
|
||||
|
||||
ephoto->flow_browser = ephoto_flow_browser_add();
|
||||
elm_pager_content_push(ephoto->pager, ephoto->flow_browser);
|
||||
|
||||
ephoto->thumb_browser = ephoto_thumb_browser_add();
|
||||
elm_pager_content_push(ephoto->pager, ephoto->thumb_browser);
|
||||
|
||||
elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser);
|
||||
ephoto->state = EPHOTO_STATE_THUMB;
|
||||
|
||||
ephoto->current_index = ephoto->images;
|
||||
_ephoto_thumb_populate();
|
||||
|
||||
|
|
|
@ -82,7 +82,6 @@ ephoto_thumb_browser_add(void)
|
|||
etb->dir_entry = elm_fileselector_entry_add(etb->box);
|
||||
elm_fileselector_entry_path_set(etb->dir_entry, ephoto->directory);
|
||||
elm_fileselector_entry_button_label_set(etb->dir_entry, "Choose");
|
||||
elm_fileselector_entry_folder_only_set(etb->dir_entry, EINA_TRUE);
|
||||
elm_fileselector_entry_is_save_set(etb->dir_entry, EINA_FALSE);
|
||||
elm_fileselector_entry_inwin_mode_set(etb->dir_entry, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(etb->dir_entry, 0.0, 0.0);
|
||||
|
|
Loading…
Reference in New Issue