Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
1502:08f97835e816 | 1503:331e2d60d447 |
---|---|
64 } | 64 } |
65 | 65 |
66 return fd; | 66 return fd; |
67 } | 67 } |
68 | 68 |
69 gint vf_index_by_path(ViewFile *vf, const gchar *path) | 69 gint vf_index_by_fd(ViewFile *vf, FileData *fd) |
70 { | 70 { |
71 gint index = -1; | 71 gint index = -1; |
72 | 72 |
73 switch (vf->type) | 73 switch (vf->type) |
74 { | 74 { |
75 case FILEVIEW_LIST: index = vflist_index_by_path(vf, path); break; | 75 case FILEVIEW_LIST: index = vflist_index_by_fd(vf, fd); break; |
76 case FILEVIEW_ICON: index = vficon_index_by_path(vf, path); break; | 76 case FILEVIEW_ICON: index = vficon_index_by_fd(vf, fd); break; |
77 } | 77 } |
78 | 78 |
79 return index; | 79 return index; |
80 } | 80 } |
81 | 81 |