| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
This allows Nautilus to open new locations in existing windows as tabs
instead of creating a new window every time, especially when triggered
via DBus interfaces.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/work_items/1687
|
|
|
|
|
|
|
|
|
|
So that it doesn't perform blocking IO twice in the main thread at application
startup.
Helps: #4017
|
|
This allows applications that already have used the "Open Containing
Location" action to focus Files' window again without focus stealing
prevension stopping it when used twice.
Also remove what is now an unused function parameter
Fixes: #4236
|
|
|
|
Eel is a library that was used in Files for a long time.
It used to be a seperate library, but then the source got
checked into Files's repository. It used to provide the
main code for the view and its elements before the GTK4
transition, and other utilities that were replaced by
GLib. Its usage slowly erorded as more code was moved out
or replaced, until there was little left.
Now we move the last bit left relating to timed wait
dialogs into ui utilities. With that, Eel directory is
eliminated.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/331
|
|
|
|
|
|
|
|
|
|
Since [1] this function only checks the existence of one directory.
Simplify the logic and adjust the message accordingly.
[1] b80390d0c486a2c19ba7a8005e038c809a45763d
|
|
The GtkMessageType parameter is unused since [1] ported show_dialog() to
AdwMessageDialog. The return type is unused since the previous commit.
[1] https://gitlab.gnome.org/GNOME/nautilus/-/commit/0f85a7d8f77afe85e1e6ccaae8c786001b1c29a4
|
|
Replaces previously broken method to add dialog to window.
|
|
|
|
The signal handler does not handle this.
|
|
Combine the slot's single-purpose added and removed signals into
a combined changed signal. Add a timeout to updating the locations
listed via DBus, to avoid unnecessary updates.
This removes the last usages of WindowSlot from application, so
the include is dropped.
|
|
|
|
Inline, use autocleanups and use static GVariant types.
|
|
|
|
Instead of querying a window and/or window slot, pass the new flag
REUSE_EXISTING to let the method open_location methods figure out the
correct window/window slot to open a location in.
This reduces the amount of parameters and removes some usages of
NautilusWindowSlot outside of NautilusWindow.
|
|
|
|
|
|
|
|
|
|
This removes last external usage of the active slot, so internalize the
getter function.
|
|
|
|
Just use existing Glib g_test_initialized() function.
|
|
This check existed since f5206a6daf0991d91e885a28bb66795a8ae12a41, which
predate this API by several years. This check is also more generic.
|
|
|
|
|
|
Application wide search never gets initialized from a specific
location.
|
|
|
|
The class is not inherited from, so this only adds complexity to
the functions and unnecessary indirections.
|
|
This fixes a regression from https://gitlab.gnome.org/GNOME/nautilus/-/commit/2e9d5fe6e083e28007c8da5df142c0e93ea2e5b8#20a7dcb46ec25462c41c8417e1c413d681a17313_671_670
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3918
|
|
NautilusFilesView was the only implementation of NautilusView, so the
interface only added indirections and code complexity. Some users of
the interface already relied on the implementation being a FilesView.
|
|
The startup ID that was passed in via the FileManager1 DBus interface
was dropped when nautilus_application_open_location() was calling
nautilus_application_open_location_full(). This meant that if a window
was being presented, it was not using the correct token/startup id,
which would cause the focus stealing prevention in some window managers,
such as mutter, to refuse focusing the window.
Closes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3385
|
|
|
|
in nautilus_application_open_location() as
otherwise it can lead to a coredump abort
later on when code asserts on non empty
filename.
This can be triggered when calling Nautilus
from D-Bus org.freedesktop.FileManager1 interface
methods passing an empty string as uri.
Fixes #3862
|
|
|
|
Currently, trying to use xdg-desktop-portal results in problems with
missing app id, i.e. when trying to inhibit logout during file copying.
GTK started prefering xdg-desktop-portal even in host apps, which
obtains app ids from the systemd unit name. However it only works for
the ones adhering to xdg standard scheme, which currently is not the
case for dbus activated apps. During GtkApplication startup there is a
call to the register API, but it needs to be the first call to the
portal for it to work. Unfortunately, we indirectly interact with the
portal before that, when initializing GDK display before the chain-up,
which is necessary for proper functioning of the file chooser mode.
Fix that by registering with the xdg-desktop-portal before initizalizing
the GDK display.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3874
|
|
Turns out there more places that will make use of it.
Related:
https://gitlab.gnome.org/GNOME/glib/-/commit/05afb30510fb98d8a564759556d11f7a1037df5a
https://gitlab.gnome.org/GNOME/nautilus/-/issues/3062
|
|
Also, move the error message to the alert dialog body instead
of presenting it in the alert dialog heading.
|
|
|
|
In many cases we only care if a list is NULL or a single item but
we use g_list_length which iterates over the whole list.
|