diff options
author | António Fernandes <antoniof@gnome.org> | 2022-04-07 17:56:01 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-06-21 19:55:01 +0100 |
commit | 6708861ed174e2b2423df0500df9987cdaf2adc0 (patch) | |
tree | 66b69e8ccde138babfbc3d2092ab42c9968ed1c1 /src/nautilus-dnd.c | |
parent | 076dc49147a4a3c4917d7e66c0ae9b86d16bf784 (diff) | |
download | nautilus-6708861ed174e2b2423df0500df9987cdaf2adc0.tar.gz |
list-view: Reimplement using GtkColumnView
GtkTreeView, while still available in GTK 4, is more limited in some
more specialized situations which we have been relying on, such as
drag-and-drop and high DPI icons.
It's also been our long desire to adopt GListModel-based list widgets
in order to unlock features and bugfixes which would have been
basically impossible to do with GtkTreeView.
We are thus dropping GtkTreeView for good and adopting GtkColumnView.
The new implementation is radically different; almost no code remains
from the old implementation. However, the new implementation has full
feature parity with the old one with two exceptions:
1. Expand subfolders as a tree: WIP in another branch.
2. Performance for large number of items: WIP branch in GTK.
Same as the old implementation, it still lacks drag-and-drop support,
which is yet to be reimplemented for GTK4.
The new implementation also implements new features which were but
a dream in GtkTreeView:
- Rubberband-selection.[1]
- Empty space inbetween and around the list of items to open context
menu, start rubberband, drop items, clear selection...[2,3,4]
- Rows highligh on hover, distinguishing them from background space
and serving as a reading aid instead without separator lines.[5]
- File names in search results and recents are no longer squashed by
the "Original location" column containing long paths. Instead, the
original location is runs parallel to the filename.[6]
- With the location column gone, the size column can be displayed
again in these two special locations.
- Full-text-search snippets no longer compete for horizontal space
with filenames, but are displayed as accent-colored subtitles.[7]
- Filenames are ellipsized at the middle, not to hide important
details at their end.[7]
- Sort order can be changed from the view menu, as in grid view.[8]
- Per-folder sorting is shared with the grid view now, fixing an old
inconsistency.[9]
- A starring animation ☆★
Closes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/320
[1] Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/200
[2] Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1929
[3] Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1476
[4] Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1764
[5] Fixes https://bugzilla.gnome.org/show_bug.cgi?id=744405
[6] Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1411
[7] Fixes https://bugzilla.gnome.org/show_bug.cgi?id=619760
[8] Fixes https://bugzilla.gnome.org/show_bug.cgi?id=142495
[9] Fixes https://bugzilla.gnome.org/show_bug.cgi?id=45659
Diffstat (limited to 'src/nautilus-dnd.c')
-rw-r--r-- | src/nautilus-dnd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c index a1e9ff128..b43e758b8 100644 --- a/src/nautilus-dnd.c +++ b/src/nautilus-dnd.c @@ -33,7 +33,6 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> #include "nautilus-file-utilities.h" -#include <src/nautilus-list-view-dnd.h> #include <stdio.h> #include <string.h> |