diff options
author | PeteHemery <[email protected]> | 2025-06-20 08:03:56 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2025-06-20 07:03:56 +0000 |
commit | be3bbcc4144c69d0f65ab07aeb3e4e69e74d12a9 (patch) | |
tree | bb75c214c099c8e601ad080d4ab9efe4d83c7bec /src/eom-window.c | |
parent | 891c063168f0d794228fd8069deca1f513453c4f (diff) | |
download | eom-be3bbcc4144c69d0f65ab07aeb3e4e69e74d12a9.tar.bz2 eom-be3bbcc4144c69d0f65ab07aeb3e4e69e74d12a9.tar.xz |
Add 'preserve-order' flag to allow viewing order specified on cmd line (#354)
Diffstat (limited to 'src/eom-window.c')
-rw-r--r-- | src/eom-window.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index fb01794..c039d67 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -5329,9 +5329,10 @@ eom_window_class_init (EomWindowClass *class) * @flags: the initialization parameters for the new window. * * - * Creates a new and empty #EomWindow. Use @flags to indicate - * if the window should be initialized fullscreen, in slideshow mode, - * and/or without the thumbnails collection visible. See #EomStartupFlags. + * Creates a new and empty #EomWindow. Use @flags to indicate if the window + * should be initialized fullscreen, in slideshow mode, and/or without the + * thumbnails collection visible. Use preserve-order to maintain + * the order of input parameters instead of sorting. See #EomStartupFlags. * * Returns: a newly created #EomWindow. **/ @@ -5471,7 +5472,7 @@ eom_window_open_file_list (EomWindow *window, GSList *file_list) g_slist_foreach (file_list, (GFunc) g_object_ref, NULL); window->priv->file_list = file_list; - job = eom_job_model_new (file_list); + job = eom_job_model_new (file_list, !!(window->priv->flags & EOM_STARTUP_PRESERVE_ORDER)); g_signal_connect (job, "finished", G_CALLBACK (eom_job_model_cb), |