Mercurial > hg > forks > geeqie
changeset 1934:95a788b9dc1c
sidecar_file_priority function is already called with extension as an argument
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sun, 02 Oct 2011 11:16:03 +0200 |
parents | 6197c967b1ff |
children | 5fab16d12a54 |
files | src/filedata.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Sun Oct 02 11:12:44 2011 +0200 +++ b/src/filedata.c Sun Oct 02 11:16:03 2011 +0200 @@ -27,7 +27,7 @@ static GHashTable *file_data_pool = NULL; static GHashTable *file_data_planned_change_hash = NULL; -static gint sidecar_file_priority(const gchar *path); +static gint sidecar_file_priority(const gchar *extension); static FileData *file_data_new_local(const gchar *path, struct stat *st, gboolean disable_sidecars); @@ -770,9 +770,8 @@ -static gint sidecar_file_priority(const gchar *path) +static gint sidecar_file_priority(const gchar *extension) { - const gchar *extension = extension_from_path(path); gint i = 1; GList *work;