comparison src/layout.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 dac747d99394
children d352a44545a6
comparison
equal deleted inserted replaced
1502:08f97835e816 1503:331e2d60d447
973 973
974 gint layout_list_get_index(LayoutWindow *lw, FileData *fd) 974 gint layout_list_get_index(LayoutWindow *lw, FileData *fd)
975 { 975 {
976 if (!layout_valid(&lw) || !fd) return -1; 976 if (!layout_valid(&lw) || !fd) return -1;
977 977
978 if (lw->vf) return vf_index_by_path(lw->vf, fd->path); 978 if (lw->vf) return vf_index_by_fd(lw->vf, fd);
979 979
980 return -1; 980 return -1;
981 } 981 }
982 982
983 void layout_list_sync_fd(LayoutWindow *lw, FileData *fd) 983 void layout_list_sync_fd(LayoutWindow *lw, FileData *fd)