[nautilus/wip/antoniof/flow-box-preparation: 1/17] file: Always filmholes on video thumbnails
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/flow-box-preparation: 1/17] file: Always filmholes on video thumbnails
- Date: Sun, 12 Dec 2021 20:25:29 +0000 (UTC)
commit b142df94ef4fcfc8a79229f6a27b769f00842591
Author: António Fernandes <antoniof gnome org>
Date: Sun Dec 12 19:08:22 2021 +0000
file: Always filmholes on video thumbnails
There is on reason not to do it for the new icon view now.
src/nautilus-file.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 6a7b77c91..0d845593b 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -5252,16 +5252,13 @@ nautilus_file_get_thumbnail_icon (NautilusFile *file,
use_experimental_views = g_settings_get_boolean (nautilus_preferences,
NAUTILUS_PREFERENCES_USE_EXPERIMENTAL_VIEWS);
- if (!use_experimental_views)
+ if (nautilus_is_video_file (file))
{
- if (nautilus_is_video_file (file))
- {
- nautilus_ui_frame_video (&pixbuf);
- }
- else
- {
- nautilus_ui_frame_image (&pixbuf);
- }
+ nautilus_ui_frame_video (&pixbuf);
+ }
+ else if (!use_experimental_views)
+ {
+ nautilus_ui_frame_image (&pixbuf);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]