mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
filechooserwidget: Fix time_sort_func
This commit is contained in:
parent
e27fa33690
commit
71adb26a0d
@ -7003,9 +7003,17 @@ time_sort_func (gconstpointer a,
|
||||
glong time_a, time_b;
|
||||
|
||||
if (impl->operation_mode == OPERATION_MODE_RECENT)
|
||||
{
|
||||
time_a = (glong) g_file_info_get_attribute_uint64 ((GFileInfo *)a, G_FILE_ATTRIBUTE_TIME_ACCESS);
|
||||
time_b = (glong) g_file_info_get_attribute_uint64 ((GFileInfo *)b, G_FILE_ATTRIBUTE_TIME_ACCESS);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
time_a = (glong) g_file_info_get_attribute_uint64 ((GFileInfo *)a, G_FILE_ATTRIBUTE_TIME_MODIFIED);
|
||||
time_b = (glong) g_file_info_get_attribute_uint64 ((GFileInfo *)b, G_FILE_ATTRIBUTE_TIME_MODIFIED);
|
||||
}
|
||||
|
||||
|
||||
if (time_a < time_b)
|
||||
return GTK_ORDERING_SMALLER;
|
||||
|
Loading…
Reference in New Issue
Block a user