Mercurial > geeqie.yaz
comparison src/view_dir_tree.c @ 318:b16b9b8979e5
Add a new struct ConfOptions to handle options.
Changes were made among the code to use only one global var
named "options" of type ConfOptions *.
Initialization takes place in new init_options().
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 22:14:36 +0000 |
parents | 9995c5fb202a |
children | c74af1cbd61a |
comparison
equal
deleted
inserted
replaced
317:46169c246c51 | 318:b16b9b8979e5 |
---|---|
1060 filelist_read(nd->fd->path, NULL, &list); | 1060 filelist_read(nd->fd->path, NULL, &list); |
1061 | 1061 |
1062 /* when hidden files are not enabled, and the user enters a hidden path, | 1062 /* when hidden files are not enabled, and the user enters a hidden path, |
1063 * allow the tree to display that path by specifically inserting the hidden entries | 1063 * allow the tree to display that path by specifically inserting the hidden entries |
1064 */ | 1064 */ |
1065 if (!show_dot_files && | 1065 if (!options->show_dot_files && |
1066 target_path && | 1066 target_path && |
1067 strncmp(nd->fd->path, target_path, strlen(nd->fd->path)) == 0) | 1067 strncmp(nd->fd->path, target_path, strlen(nd->fd->path)) == 0) |
1068 { | 1068 { |
1069 gint n; | 1069 gint n; |
1070 | 1070 |