diff src/view_file.c @ 1503:331e2d60d447

improved next/prev operation on sidecar files all operations with list index seem to be broken but IMHO this fix is sufficient for 1.0. Then it definitely needs a better interface.
author nadvornik
date Tue, 31 Mar 2009 21:33:54 +0000
parents 5f49f305a6b6
children d352a44545a6
line wrap: on
line diff
--- a/src/view_file.c	Tue Mar 31 20:57:31 2009 +0000
+++ b/src/view_file.c	Tue Mar 31 21:33:54 2009 +0000
@@ -66,14 +66,14 @@
 	return fd;
 }
 
-gint vf_index_by_path(ViewFile *vf, const gchar *path)
+gint vf_index_by_fd(ViewFile *vf, FileData *fd)
 {
 	gint index = -1;
 
 	switch (vf->type)
 	{
-	case FILEVIEW_LIST: index = vflist_index_by_path(vf, path); break;
-	case FILEVIEW_ICON: index = vficon_index_by_path(vf, path); break;
+	case FILEVIEW_LIST: index = vflist_index_by_fd(vf, fd); break;
+	case FILEVIEW_ICON: index = vficon_index_by_fd(vf, fd); break;
 	}
 
 	return index;