diff options
author | Victor Kareh <[email protected]> | 2019-04-10 00:30:39 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-04-12 20:10:19 +0200 |
commit | 3600686c9edffbd291f13801d9cb893a72f38341 (patch) | |
tree | 8595df6967929d922b67dfb6f9ab35f1475a5543 /src/eom-list-store.c | |
parent | 2547d314e650fbac62b0e4a59c3c8dede43a16bf (diff) | |
download | eom-3600686c9edffbd291f13801d9cb893a72f38341.tar.bz2 eom-3600686c9edffbd291f13801d9cb893a72f38341.tar.xz |
store: Add any image file in the current directory to the store
This allows eom to navigate through all image files in a directory
without having to manually load them into the store.
Diffstat (limited to 'src/eom-list-store.c')
-rw-r--r-- | src/eom-list-store.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eom-list-store.c b/src/eom-list-store.c index 4be7e02..71ac565 100644 --- a/src/eom-list-store.c +++ b/src/eom-list-store.c @@ -475,8 +475,9 @@ directory_visit (GFile *directory, mime_type = g_file_info_get_content_type (children_info); name = g_file_info_get_name (children_info); - if (!g_str_has_prefix (name, ".")) { - if (eom_image_is_supported_mime_type (mime_type)) { + if (!g_str_has_prefix (name, ".")) { + /* We support opening any image type, so let eom to add any images in the current directory to the store */ + if (g_content_type_is_mime_type (mime_type, "image/*") || eom_image_is_supported_mime_type (mime_type)) { load_uri = TRUE; } } |