old_list = vf->list;
vf->list = NULL;
+ DEBUG_1("%s vflist_refresh: read dir", get_exec_time());
if (vf->path)
{
ret = filelist_read(vf->path, &vf->list, NULL);
}
+ DEBUG_1("%s vflist_refresh: sort", get_exec_time());
vf->list = filelist_sort(vf->list, vf->sort_method, vf->sort_ascend);
+
+ DEBUG_1("%s vflist_refresh: populate view", get_exec_time());
+
vflist_populate_view(vf);
filelist_free(old_list);
+ DEBUG_1("%s vflist_refresh: done", get_exec_time());
return ret;
}
gchar *source_base;
gchar *dest_base;
+ DEBUG_1("%s vflist_maint_renamed: start", get_exec_time());
+
if (g_list_index(vf->list, fd) < 0) return FALSE;
source_base = remove_level_from_path(fd->change->source);
g_free(source_base);
g_free(dest_base);
+ DEBUG_1("%s vflist_maint_renamed: done", get_exec_time());
+
return ret;
}
gint row;
gint new_row = -1;
+ DEBUG_1("%s vflist_maint_removed: start", get_exec_time());
+
row = g_list_index(vf->list, fd);
if (row < 0) return FALSE;
vf_send_update(vf);
+ DEBUG_1("%s vflist_maint_removed: done", get_exec_time());
+
return TRUE;
}