[nautilus/wip/corey/reverse-selection] list-base: Return correct order in real_get_selection()
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/reverse-selection] list-base: Return correct order in real_get_selection()
- Date: Tue, 27 Sep 2022 23:05:53 +0000 (UTC)
commit 9e83348de3310187c8fdca10434daa9ebd6bb4e0
Author: Corey Berla <corey berla me>
Date: Tue Sep 27 16:04:30 2022 -0700
list-base: Return correct order in real_get_selection()
We are using g_list_prepend() in real_get_selection(), so it should
be reversed.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2512
src/nautilus-list-base.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index c1f85e6d1..4fc63d083 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -1135,6 +1135,8 @@ real_get_selection (NautilusFilesView *files_view)
g_object_ref (nautilus_view_item_get_file (item)));
}
+ selected_files = g_list_reverse (selected_files);
+
return selected_files;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]