Mercurial > geeqie
diff src/slideshow.c @ 326:509b84801d66
Rename slideshow options.
author | zas_ |
---|---|
date | Sat, 12 Apr 2008 07:46:01 +0000 |
parents | b16b9b8979e5 |
children | df868b947aa0 |
line wrap: on
line diff
--- a/src/slideshow.c Sat Apr 12 07:09:19 2008 +0000 +++ b/src/slideshow.c Sat Apr 12 07:46:01 2008 +0000 @@ -94,7 +94,7 @@ if (ss->list) g_list_free(ss->list); - if (options->slideshow_random) + if (options->slideshow.random) { ss->list = generate_random_list(ss); } @@ -209,7 +209,7 @@ } } - if (!ss->list && options->slideshow_repeat) + if (!ss->list && options->slideshow.repeat) { slideshow_list_init(ss, -1); } @@ -274,10 +274,10 @@ { if (reset) { - if (options->slideshow_delay < 1) options->slideshow_delay = 1; + if (options->slideshow.delay < 1) options->slideshow.delay = 1; if (ss->timeout_id != -1) g_source_remove(ss->timeout_id); - ss->timeout_id = g_timeout_add(options->slideshow_delay * 1000 / SLIDESHOW_SUBSECOND_PRECISION, + ss->timeout_id = g_timeout_add(options->slideshow.delay * 1000 / SLIDESHOW_SUBSECOND_PRECISION, slideshow_loop_cb, ss); } else if (ss->timeout_id != -1) @@ -350,7 +350,7 @@ { collection_ref(ss->cd); ss->slide_count = g_list_length(ss->cd->list); - if (!options->slideshow_random && start_info) + if (!options->slideshow.random && start_info) { start_index = g_list_index(ss->cd->list, start_info); } @@ -364,7 +364,7 @@ if (ss->slide_count < 2) { ss->slide_count = layout_list_count(ss->layout, NULL); - if (!options->slideshow_random && start_point >= 0 && start_point < ss->slide_count) + if (!options->slideshow.random && start_point >= 0 && start_point < ss->slide_count) { start_index = start_point; }