From 28c43f1042fcb90de9eb10e7abd154e934f70749 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 10 Jan 2024 17:43:36 +0100 Subject: [PATCH] GFileInfo: Fix make check based in caja commit: https://github.com/mate-desktop/caja/commit/1096ea06a10a68071ae304727a81a73375bfcee4 --- libbaul-private/baul-directory-async.c | 3 ++- libbaul-private/baul-file.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libbaul-private/baul-directory-async.c b/libbaul-private/baul-directory-async.c index da1fa03a..2ea8ba97 100644 --- a/libbaul-private/baul-directory-async.c +++ b/libbaul-private/baul-directory-async.c @@ -3832,7 +3832,8 @@ static gboolean is_trusted_system_desktop_file (GFile *file) return FALSE; } - target = g_file_info_get_symlink_target (info); + target = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET); + if (!target) { goto done; } diff --git a/libbaul-private/baul-file.c b/libbaul-private/baul-file.c index 82e29a15..b9827575 100644 --- a/libbaul-private/baul-file.c +++ b/libbaul-private/baul-file.c @@ -2399,7 +2399,8 @@ update_info_internal (BaulFile *file, } file->details->size_on_disk = size_on_disk; - sort_order = g_file_info_get_sort_order (info); + sort_order = g_file_info_get_attribute_int32 (info, G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER); + if (file->details->sort_order != sort_order) { changed = TRUE; } @@ -2451,7 +2452,8 @@ update_info_internal (BaulFile *file, file->details->thumbnailing_failed = thumbnailing_failed; } - symlink_name = g_file_info_get_symlink_target (info); + symlink_name = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET); + if (eel_strcmp (file->details->symlink_name, symlink_name) != 0) { changed = TRUE; g_free (file->details->symlink_name);