return 0;
}
-const gchar *layout_list_get_path(LayoutWindow *lw, gint index)
-{
- if (!layout_valid(&lw)) return NULL;
-
- if (lw->vf) return vf_index_get_path(lw->vf, index);
-
- return NULL;
-}
-
FileData *layout_list_get_fd(LayoutWindow *lw, gint index)
{
if (!layout_valid(&lw)) return NULL;
GList *layout_list(LayoutWindow *lw);
gint layout_list_count(LayoutWindow *lw, gint64 *bytes);
-const gchar *layout_list_get_path(LayoutWindow *lw, gint index);
FileData *layout_list_get_fd(LayoutWindow *lw, gint index);
gint layout_list_get_index(LayoutWindow *lw, const gchar *path);
void layout_list_sync_fd(LayoutWindow *lw, FileData *fd);
return fd;
}
-gchar *vf_index_get_path(ViewFile *vf, gint row)
-{
- gchar *path = NULL;
-
- switch(vf->type)
- {
- case FILEVIEW_LIST: path = vflist_index_get_path(vf, row); break;
- case FILEVIEW_ICON: path = vficon_index_get_path(vf, row); break;
- }
-
- return path;
-}
-
gint vf_index_by_path(ViewFile *vf, const gchar *path)
{
gint index = -1;
void vf_sort_set(ViewFile *vf, SortType type, gint ascend);
FileData *vf_index_get_data(ViewFile *vf, gint row);
-gchar *vf_index_get_path(ViewFile *vf, gint row);
gint vf_index_by_path(ViewFile *vf, const gchar *path);
gint vf_index_by_fd(ViewFile *vf, FileData *in_fd);
gint vf_count(ViewFile *vf, gint64 *bytes);
return id ? id->fd : NULL;
}
-gchar *vficon_index_get_path(ViewFile *vf, gint row)
-{
- FileData *fd;
- IconData *id;
-
- id = g_list_nth_data(vf->list, row);
- fd = id ? id->fd : NULL;
-
- return (fd ? fd->path : NULL);
-}
-
gint vficon_index_by_path(ViewFile *vf, const gchar *path)
{
gint p = 0;
void vficon_sort_set(ViewFile *vf, SortType type, gint ascend);
FileData *vficon_index_get_data(ViewFile *vf, gint row);
-gchar *vficon_index_get_path(ViewFile *vf, gint row);
gint vficon_index_by_path(ViewFile *vf, const gchar *path);
gint vficon_index_by_fd(ViewFile *vf, FileData *in_fd);
gint vficon_count(ViewFile *vf, gint64 *bytes);
return g_list_nth_data(vf->list, row);
}
-gchar *vflist_index_get_path(ViewFile *vf, gint row)
-{
- FileData *fd;
-
- fd = g_list_nth_data(vf->list, row);
-
- return (fd ? fd->path : NULL);
-}
-
static gint vflist_row_by_path(ViewFile *vf, const gchar *path, FileData **fd)
{
gint p = 0;
void vflist_sort_set(ViewFile *vf, SortType type, gint ascend);
FileData *vflist_index_get_data(ViewFile *vf, gint row);
-gchar *vflist_index_get_path(ViewFile *vf, gint row);
gint vflist_index_by_path(ViewFile *vf, const gchar *path);
gint vflist_count(ViewFile *vf, gint64 *bytes);
GList *vflist_get_list(ViewFile *vf);