Mercurial > geeqie.yaz
diff src/view_file_icon.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 | bc3f5c0432f6 |
children | d352a44545a6 |
line wrap: on
line diff
--- a/src/view_file_icon.c Tue Mar 31 20:57:31 2009 +0000 +++ b/src/view_file_icon.c Tue Mar 31 21:33:54 2009 +0000 @@ -2054,25 +2054,6 @@ return id ? id->fd : NULL; } -gint vficon_index_by_path(ViewFile *vf, const gchar *path) -{ - gint p = 0; - GList *work; - - if (!path) return -1; - - work = vf->list; - while (work) - { - IconData *id = work->data; - FileData *fd = id->fd; - if (strcmp(path, fd->path) == 0) return p; - work = work->next; - p++; - } - - return -1; -} gint vficon_index_by_fd(ViewFile *vf, FileData *in_fd) {