aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-11-28 22:09:11 +0000
committerHarry Jeffery <harry@exec64.co.uk>2017-11-28 22:09:11 +0000
commitf47edf8c1b62bfa41c30b6c42e7ff86dc9df8705 (patch)
treef41f58c2426b02dce9edd5c5f1bcb1875a7856fb
parente9ad72508cb0e05c1cb4d581e66aae34b0210c45 (diff)
downloadimv-f47edf8c1b62bfa41c30b6c42e7ff86dc9df8705.tar.gz
Rename list_at_exit -> list_files_at_exit
-rw-r--r--files/imv_config2
-rw-r--r--src/imv.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/files/imv_config b/files/imv_config
index 5694390..2b7a1aa 100644
--- a/files/imv_config
+++ b/files/imv_config
@@ -18,7 +18,7 @@
# cycle_input = false
# Print all the images still open when we quit
-# list_at_exit = true
+# list_files_at_exit = true
# Scaling mode, one of: none, shrink, and full
# scaling_mode = none
diff --git a/src/imv.c b/src/imv.c
index b86ddcd..6c07e73 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -50,7 +50,7 @@ struct imv {
bool need_rescale;
bool recursive_load;
bool cycle_input;
- bool list_at_exit;
+ bool list_files_at_exit;
bool paths_from_stdin;
enum scaling_mode scaling_mode;
enum background_type background_type;
@@ -140,7 +140,7 @@ struct imv *imv_create(void)
imv->recursive_load = false;
imv->scaling_mode = SCALING_FULL;
imv->cycle_input = true;
- imv->list_at_exit = false;
+ imv->list_files_at_exit = false;
imv->paths_from_stdin = false;
imv->background_color.r = imv->background_color.g = imv->background_color.b = 0;
imv->slideshow_image_duration = 0;
@@ -331,7 +331,7 @@ bool imv_parse_args(struct imv *imv, int argc, char **argv)
case 'u': imv->nearest_neighbour = true; break;
case 'd': imv->overlay_enabled = true; break;
case 'x': imv->cycle_input = false; break;
- case 'l': imv->list_at_exit = true; break;
+ case 'l': imv->list_files_at_exit = true; break;
case 'n': imv->starting_path = optarg; break;
case 'e': imv->font_name = strdup(optarg); break;
case 'h':
@@ -556,7 +556,7 @@ int imv_run(struct imv *imv)
SDL_WaitEventTimeout(NULL, timeout);
}
- if(imv->list_at_exit) {
+ if(imv->list_files_at_exit) {
for(size_t i = 0; i < imv_navigator_length(imv->navigator); ++i)
puts(imv_navigator_at(imv->navigator, i));
}
@@ -907,8 +907,8 @@ static int handle_ini_value(void *user, const char *section, const char *name,
return 1;
}
- if(!strcmp(name, "list_at_exit")) {
- imv->list_at_exit = parse_bool(value);
+ if(!strcmp(name, "list_files_at_exit")) {
+ imv->list_files_at_exit = parse_bool(value);
return 1;
}