Mercurial > geeqie.yaz
comparison src/main.c @ 1727:548fddf5070a
ignored multiple directories specified on commandline
IMHO this was inconsistent - specifying one directory had completely
different effect than specifying two or more directories. Moreover,
it segfaulted.
Now only one directory is allowed.
author | nadvornik |
---|---|
date | Thu, 01 Oct 2009 18:40:34 +0000 |
parents | 9efd43f52b5b |
children | 91a65afb5d77 |
comparison
equal
deleted
inserted
replaced
1726:2706c370fef7 | 1727:548fddf5070a |
---|---|
128 } | 128 } |
129 | 129 |
130 static void parse_command_line_add_dir(const gchar *dir, gchar **path, gchar **file, | 130 static void parse_command_line_add_dir(const gchar *dir, gchar **path, gchar **file, |
131 GList **list) | 131 GList **list) |
132 { | 132 { |
133 #if 0 | |
134 /* This is broken because file filter is not initialized yet. | |
135 */ | |
133 GList *files; | 136 GList *files; |
134 gchar *path_parsed; | 137 gchar *path_parsed; |
135 FileData *dir_fd; | 138 FileData *dir_fd; |
136 | 139 |
137 path_parsed = g_strdup(dir); | 140 path_parsed = g_strdup(dir); |
160 g_list_free(files); | 163 g_list_free(files); |
161 } | 164 } |
162 | 165 |
163 g_free(path_parsed); | 166 g_free(path_parsed); |
164 file_data_unref(dir_fd); | 167 file_data_unref(dir_fd); |
168 #else | |
169 DEBUG_1("multiple directories specified, ignoring: %s", dir); | |
170 #endif | |
165 } | 171 } |
166 | 172 |
167 static void parse_command_line_process_dir(const gchar *dir, gchar **path, gchar **file, | 173 static void parse_command_line_process_dir(const gchar *dir, gchar **path, gchar **file, |
168 GList **list, gchar **first_dir) | 174 GList **list, gchar **first_dir) |
169 { | 175 { |