| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This code broke when it was ported to listmodels
since we always have a non-NULL lis model of filters.
It can just be empty.
|
| |
|
|
|
|
| |
We own references to the columns. Drop them.
|
|
|
|
|
|
|
|
|
| |
BuilderListItemFactory isn't quite suited for our purposes, primarily
because you can't pass user data to BuilderListItemFactory. Because
we can't get the data we are using a workaround to get the
GtkFileChooserWidget ancestory, which used to work, but with the
recent list view changes no longer doesn't. Use GtkSignalListItemFactory
with the GtkFileChooserWidget as the user data.
|
|
|
|
|
|
|
|
| |
filechooserwidget"
This reverts commit 2a70093a309481cf633086a5e8f0c8bc6d2c89f0.
This fix was incomplete, the actual fix is to use signal factory.
|
|
|
|
|
|
| |
This reverts commit dd407dab000dc4de7d078c6270c93d303a1c18c6.
This fix was incomplete, the actual fix is to use signal factory.
|
|
|
|
|
|
|
|
|
|
|
| |
The date/time column relies on the filechooserwidget to format the date
properly. During bind, the filechoosercell, get the filechooserwidget
ancestor, but now due to changes in the listview, the cell isn't a
child of the filechooserwidget at that point. Since this is deeply
ingrained into the filechooserwidget, let's keep the same behavior,
but move it to filechoosercell in realize. Alternatively, we could have
used a signal factory (with the file chooser widget as the user data),
but that would have been a major overhaul.
|
|
|
|
|
|
|
|
|
| |
The format of the type column depends on the the type_format, which
is stored in the filechooserwidget. We get that setting by looking
for the filechooserwidget ancestor, which no longer works after recent
changes to the list views (it was fragile to begin with). At one point,
the setting appears to have been dynamic, but now it is only loading
from GSettings, so let's simply do the same within FileChooserCell.
|
|
|
|
| |
Some missing updates from f5dea9a3c217c49f44eedb18822be080d2451dc0
|
|
|
|
|
| |
This way, we can toggle per-row selectability and ensure files are not
selectable in select-folder mode.
|
|
|
|
|
|
| |
Otherwise anything that dlopen()'s GTK will have a bad day.
See: https://discourse.gnome.org/t/strange-filechooserdialog-behaviour-in-gtk-4-10/14435
|
|\
| |
| |
| |
| | |
filerchooser: Show Recent files in inverse order
See merge request GNOME/gtk!5625
|
| |
| |
| |
| |
| |
| |
| | |
When looking at Recent files in the file chooser, it makes more
sense to show the recent files on top.
This commit flips the sort order for that case.
|
| |
| |
| |
| | |
In folder modes, we don't want to select files.
|
|\ \
| |/
|/|
| |
| | |
filechooser: Don't automatically select a file
See merge request GNOME/gtk!5572
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When the folder changes, do not select the first item in the list,
so if the user enters a folder and then clicks the accept button,
the current folder is returned instead of the selected one.
To maintain consistency with the previous implementation, when a
folder in the path bar is clicked the previously-entered folder is
selected, and when the file chooser is in open file mode the first
item is always selected.
See #5438
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the `GtkRecentInfo` represents a directory, simply use it, and
do not try to find its parent in `_gtk_file_chooser_extract_recent_folders()`.
For example, there is an entry in my recently-used database
from the Amberol music player about the folder I have opened
with it, but the folder is not listed on the "Recent" tab of
the file chooser widget, only its parent. After this change,
the directory itself is shown.
|
| |
| |
| |
| |
| | |
There is already a function for determining if URI
has the "file" scheme, so use that.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Filter recently used files in the file chooser
Closes #5650
See merge request GNOME/gtk!5618
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since it's a file selection widget, we should only list recently used
files that point to a file.
Fixes: #5650
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently the GtkSearchEngine is torn down every time the search
is stopped, which also means between typed characters. This
prevents any of the optimizations that the GtkSearchEngine can
do in the long run.
Let the GtkSearchEngine stay around for longer, and only be
disposed after search is cancelled, the filechooser moves
onto a different mode than search, or is otherwise unmapped/disposed.
While at it, remove an unused struct field.
|
| | |
| | |
| | |
| | | |
The returned strings from `file_chooser_get_location()` were never freed.
|
|/ /
| |
| |
| |
| |
| |
| | |
g_file_get_path() can return NULL. Make our
getter for file locations handle that case.
Related: !5610
|
|/
|
|
|
|
|
|
|
| |
GLib 2.75 started checking if a GFileInfo was created with the attribute
we're querying, instead of failing silently and leaving us in an
inconsistent state.
Turns out that GtkFileChooserWidget, GtkFileSystemModel, and GtkPathBar
trip the newly introduced check.
|
| |
|
|
|
|
|
|
|
| |
Copying this file from GIO without renaming it
was not the greatest idea in retrospect.
Fixes: #5572
|
|
|
|
|
|
|
| |
We only want to show the file list context menu
when we are over the file list.
Fixes: #5554
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
switch_to_selected_folder can be called when the
selection contains more than one item. Handle it
like it used to be handled: switch to the first
folder we find.
Fixes: #5494
|
|
|
|
|
| |
Make sure we have a GError, so that dismissing and cancelling can be
separated.
|
|
|
|
|
|
| |
The tooltips from the Grid View & List View buttons are unnecessarily long and look different from the tooltips used in Nautilus.
This commit makes the tooltips to be consistent with Nautilus and, consequently, makes them shorter.
|
|\
| |
| |
| |
| |
| |
| | |
Add GtkGridView to the filechooser
Closes #233
See merge request GNOME/gtk!5163
|
| |
| |
| |
| |
| | |
There's no way this could ever have been correct. We always want to
show the tooltip, and it's basically always available.
|
| |
| |
| |
| | |
As per design direction, show the pathbar in recent mode.
|
| | |
|
| |
| |
| |
| |
| |
| | |
With this, the filechooser comes up with the
same view (grid or list) that it had the last
time you used it.
|
| |
| |
| |
| | |
It's shared between both column and grid views now.
|
| |
| |
| |
| |
| | |
It's exactly the same as of the column view. Since we're sharing
the callback now, rename it to browse_files_view_keynav_failed_cb.
|
| |
| |
| |
| |
| |
| | |
Most of the pointer comparisons against 'browse_files_column_view'
should actually be performed against the current view widget. As
it turns out, it weren't that many places after all.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a grid view outside of the widgetry tree. The grid view mimics
the column view using bindings, so we only need to manage the column
view.
Also add a button in the path bar section to toggle the view. This
is handled as a new 'toggle-view' action in the file chooser.
The way switching between views currently work is by setting either
the column or grid view as the child of the GtkScrolledWindow. This
has the benefit of unmapping the unused view, which is nice and can
avoid some tricky situations with thumbnails.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/233
|
| | |
|
|/
|
|
|
| |
Replace all uses of gtk_show_uri
with GtkFileLauncher.
|
|
|
|
| |
This required an extra argument. Update all callers.
|
|
|
|
| |
Fix a memory leak in the file manager launch path.
|
|
|
|
|
|
|
| |
gtk_widget_set_visible and gtk_window_present
are better alternatives, and calling gtk_widget_show
on newly created widgets is no longer necessary
anyway.
|
|
|
|
|
| |
If the choice was in the form of a GtkDropDown, the code failed to
find the widget and so the choice never got set. Fixes #5346.
|
|
|
|
|
|
|
|
|
| |
These are being replaced by GtkFileDialog.
This commit only moves the headers for GtkFileChooserWidget and
GtkFileChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFileChooserWindow.
|
| |
|
| |
|