forked from enlightenment/edi
filepanel: remove uneccessary methods.
This commit is contained in:
parent
c48220d61e
commit
15c19acf1a
|
@ -210,7 +210,6 @@ _item_menu_scm_add_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
sd = data;
|
sd = data;
|
||||||
|
|
||||||
edi_scm_add(sd->path);
|
edi_scm_add(sd->path);
|
||||||
edi_filepanel_update_path(sd->path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -228,8 +227,6 @@ _item_menu_scm_del_do_cb(void *data)
|
||||||
edi_scm_del(sd->path);
|
edi_scm_del(sd->path);
|
||||||
else
|
else
|
||||||
ecore_file_unlink(sd->path);
|
ecore_file_unlink(sd->path);
|
||||||
|
|
||||||
edi_filepanel_update_path(sd->path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -708,48 +705,6 @@ _file_listing_fill(Edi_Dir_Data *dir, Elm_Object_Item *parent_it)
|
||||||
_ls_done_cb, _ls_error_cb, lreq);
|
_ls_done_cb, _ls_error_cb, lreq);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_edi_filepanel_update_dir(const char *directory)
|
|
||||||
{
|
|
||||||
Eina_List *files;
|
|
||||||
char *path;
|
|
||||||
char *file;
|
|
||||||
|
|
||||||
files = ecore_file_ls(directory);
|
|
||||||
|
|
||||||
EINA_LIST_FREE(files, file)
|
|
||||||
{
|
|
||||||
if (file[0] != '.')
|
|
||||||
{
|
|
||||||
path = edi_path_append(directory, file);
|
|
||||||
if (ecore_file_is_dir(path))
|
|
||||||
_edi_filepanel_update_dir(path);
|
|
||||||
else
|
|
||||||
edi_filepanel_update_path(path);
|
|
||||||
free(path);
|
|
||||||
}
|
|
||||||
free(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (files)
|
|
||||||
eina_list_free(files);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
edi_filepanel_update_all(void)
|
|
||||||
{
|
|
||||||
_edi_filepanel_update_dir(edi_project_get());
|
|
||||||
}
|
|
||||||
|
|
||||||
void edi_filepanel_update_path(const char *path)
|
|
||||||
{
|
|
||||||
Elm_Object_Item *item = _file_listing_item_find(path);
|
|
||||||
if (!item)
|
|
||||||
return;
|
|
||||||
|
|
||||||
elm_genlist_item_update(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_file_listing_updated(void *data EINA_UNUSED, int type EINA_UNUSED,
|
_file_listing_updated(void *data EINA_UNUSED, int type EINA_UNUSED,
|
||||||
void *event EINA_UNUSED)
|
void *event EINA_UNUSED)
|
||||||
|
@ -774,8 +729,6 @@ _file_listing_updated(void *data EINA_UNUSED, int type EINA_UNUSED,
|
||||||
_file_listing_item_delete(ev->filename);
|
_file_listing_item_delete(ev->filename);
|
||||||
else
|
else
|
||||||
DBG("Ignoring file update event for %s", ev->filename);
|
DBG("Ignoring file update event for %s", ev->filename);
|
||||||
|
|
||||||
edi_filepanel_update_path(ev->filename);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Panel filtering */
|
/* Panel filtering */
|
||||||
|
|
|
@ -58,22 +58,6 @@ const char *edi_filepanel_selected_path_get(Evas_Object *obj);
|
||||||
*/
|
*/
|
||||||
void edi_filepanel_select_path(const char *path);
|
void edi_filepanel_select_path(const char *path);
|
||||||
|
|
||||||
/**
|
|
||||||
* Notify a file change has occurred to trigger an update to item content.
|
|
||||||
*
|
|
||||||
* @param path The path of the file to be updated in the file panel.
|
|
||||||
*
|
|
||||||
* @ingroup UI
|
|
||||||
*/
|
|
||||||
void edi_filepanel_update_path(const char *path);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Notify filepanel to update all file items.
|
|
||||||
*
|
|
||||||
* @ingroup UI
|
|
||||||
*/
|
|
||||||
void edi_filepanel_update_all(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialise a file panel search.
|
* Initialise a file panel search.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1003,7 +1003,6 @@ _edi_menu_scm_init_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
edi_consolepanel_show();
|
edi_consolepanel_show();
|
||||||
edi_scm_git_new();
|
edi_scm_git_new();
|
||||||
edi_scm_init();
|
edi_scm_init();
|
||||||
edi_filepanel_update_all();
|
|
||||||
_edi_icon_update();
|
_edi_icon_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1025,7 +1024,6 @@ static void
|
||||||
_edi_scm_stash_do_cb(void *data EINA_UNUSED)
|
_edi_scm_stash_do_cb(void *data EINA_UNUSED)
|
||||||
{
|
{
|
||||||
edi_scm_stash();
|
edi_scm_stash();
|
||||||
edi_filepanel_update_all();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1052,7 +1050,6 @@ _edi_menu_scm_pull_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
edi_consolepanel_clear();
|
edi_consolepanel_clear();
|
||||||
edi_consolepanel_show();
|
edi_consolepanel_show();
|
||||||
edi_scm_pull();
|
edi_scm_pull();
|
||||||
edi_filepanel_update_all();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1068,7 +1065,6 @@ _edi_menu_scm_push_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
edi_consolepanel_clear();
|
edi_consolepanel_clear();
|
||||||
edi_consolepanel_show();
|
edi_consolepanel_show();
|
||||||
edi_scm_push();
|
edi_scm_push();
|
||||||
edi_filepanel_update_all();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -157,8 +157,6 @@ _edi_file_screens_rename_cb(void *data,
|
||||||
ecore_file_mv(existing_path, path);
|
ecore_file_mv(existing_path, path);
|
||||||
else
|
else
|
||||||
edi_scm_move(existing_path, path);
|
edi_scm_move(existing_path, path);
|
||||||
|
|
||||||
edi_filepanel_update_path(path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
evas_object_del(_popup);
|
evas_object_del(_popup);
|
||||||
|
|
Loading…
Reference in New Issue