Commit graph

22237 commits

Author SHA1 Message Date
António Fernandes
82da3192d7 mime-actions: Don't leak error 2021-03-12 15:47:05 +00:00
António Fernandes
cea4910608 mime-actions: Add all portal-opened files to recents
While sandboxed, we add the first file in the queue to recents.

This has two problems:

* The file is added to recents even if we fail to launch.
* If opening multiple files, we forget to add the others to recents

Instead, add each file to recents for each successful launch.
2021-03-12 15:47:05 +00:00
António Fernandes
17285c2583 mime-actions: Drop dead code path
Now that the async files opening path is only used while sandboxed,
the conditions for these if blocks (not being sanboxed) is never met.
2021-03-12 15:47:05 +00:00
António Fernandes
f3ef2e812e mime-actions: Check flatpak-info only once 2021-03-12 15:47:05 +00:00
António Fernandes
080f83385f mime-actions: Open files as groups if not sandboxed
While sandboxed, we open files using the OpenURI portal, and we don't
know which app is the default handler app for each file. As such, we
have given up group-launching files with the same default handler when
adapting nautilus to being sandboxed.[0]

But this resulted in a feature regression in the non-sandboxed case,
which is still the common case in production.

Reinstate the code for the old behaviour[1], but keep the current
behaviour when running in inside a flatpak sandbox.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/117

[0] f5206a6daf
[1] based on revert patch with revert conflicts resolved by hadess
2021-03-12 15:47:05 +00:00
António Fernandes
e771411670 window: Handle NULL active_slot pointer
This pointer may be NULL. Usually this may happen only during window
initialization and destruction. However, for robustness, make sure
every use either handles a NULL pointer or asserts it's non-NULL.
2021-03-12 15:07:07 +00:00
António Fernandes
13de21b47f window: Add weak reference to the active slot
We used to explicitly set the active slot when closing a tab. However,
we now let GtkNotebook pick the next tab, and wait for ::switch-tab to
set the active_slot field to the one GtkNotebook picked, thanks to
commit 475684ac9e.

However, if the closed tab was the only tab in this window, then
::switch-tab is never called, so active_slot becomes a dangling
pointer, crashing the application when trying to close the window.

Use a weak reference to ensure the pointer is set to NULL in that case.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1759
2021-03-12 15:07:07 +00:00
Changwoo Ryu
699cc7d041 Update Korean translation 2021-03-12 02:13:47 +00:00
Danial Behzadi
3036ebba07 Update Persian translation 2021-03-10 16:02:10 +00:00
Fabio Tomat
948e722a21 Update Friulian translation 2021-03-10 11:17:44 +00:00
Tim Sabsch
cb5be0f5c2 Update German translation 2021-03-08 20:43:52 +00:00
Marek Černocký
16f3e02e98 Updated Czech translation 2021-03-08 16:30:39 +01:00
Emin Tufan Çetin
06e20a32aa Update Turkish translation 2021-03-07 19:44:24 +00:00
Zander Brown
75fc6291b0 Update British English translation 2021-03-07 12:26:53 +00:00
António Fernandes
2045f662f2 Revert "clipboard: Use text based clipboard only"
After removing the non-default "icons on desktop" functionality from
nautilus, a gnome-shell extension was created as a substitute. This
extension needed to interoperate with nautilus for file operations,
but its access to clipboard was limited to plain text, so, in order to
ensure interoperation, nautilus had to use plain text clipboard only.

However, this temporary regression resulted in implementation details
leaking into the text clipboard, instead of a plain file path.

But now St.Clipboard can handle any type of clipboard content[1], the
extension will be able to handle any clipboard type, so we can finally
fix this regression on our side.

This reverts commit 1f77023b57
and its fixup commit be53569b33

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/634

[1] GNOME/gnome-shell@ec367623
2021-03-07 11:12:20 +00:00
António Fernandes
7834de2671 ci: Set nightly runtime repository
It was set to flathub because we used to depend on a stable runtime. [1]

We have since changed to depend on the unstable runtime[2], but the
Nightly flatpakref still configures the wrong repo on 
installation. If the user didn't have the gnome-nightly repository 
configured in advance, then the runtime cannot be found, failing the
installation.[3]

Update the repo URL, which I should have done in [2].

[1] c4afd14696
[2] d95a616116
[3] https://blogs.gnome.org/antoniof/2021/03/05/files-40-beta-more-productivity-and-some-eye-candy/#comment-541
2021-03-06 18:24:33 +00:00
Efstathios Iosifidis
d4ffcfc38c Update Greek translation 2021-03-03 18:59:35 +00:00
Baurzhan Muftakhidinov
114bd747d4 Update Kazakh translation 2021-03-01 03:10:27 +00:00
Asier Sarasua Garmendia
e71091f558 Update Basque translation 2021-02-27 08:53:23 +00:00
Kukuh Syafaat
9d784e7177 Update Indonesian translation 2021-02-26 12:04:37 +00:00
Goran Vidović
b6fd0f5167 Update Croatian translation 2021-02-26 09:35:10 +00:00
Goran Vidović
fa9a5c688f Update Croatian translation 2021-02-26 09:33:17 +00:00
Christian Kirbach
aabe7b8697 Update German translation 2021-02-25 21:17:56 +00:00
Fran Dieguez
0b1293f8ae Update Galician translation 2021-02-24 00:09:35 +00:00
Aurimas Černius
f831ac6ac1 Updated Lithuanian translation 2021-02-21 21:46:50 +02:00
Jiri Grönroos
9178af5485 Update Finnish translation 2021-02-21 16:34:13 +00:00
Sabri Ünal
da67c801cb Update Turkish translation 2021-02-21 16:29:14 +00:00
Rafael Fontenelle
e1f98925e6 Update Brazilian Portuguese translation 2021-02-18 01:13:16 +00:00
Matej Urbančič
acc2b7e39c Update Slovenian translation 2021-02-17 20:41:37 +00:00
Ondrej Holy
14442a8d4f ci: Add libhandy master to Dockerfile
The CI currently fails because the latest libhandly release is not yet
in rawhide. Let's add libhandy master to our image to fix the pipeline.
2021-02-17 09:34:44 +01:00
Charles Monzat
2ca982a10b Update French translation 2021-02-17 08:07:44 +00:00
Kukuh Syafaat
6a763fb3fe Update Indonesian translation 2021-02-16 11:35:26 +00:00
Марко Костић
e56bf96d61 Update Serbian translation 2021-02-16 07:56:57 +00:00
Emin Tufan Çetin
5bfe0d2cd9 Update Turkish translation 2021-02-15 13:53:05 +00:00
Daniel Mustieles
4fdb762520 Updated Spanish translation 2021-02-15 10:49:29 +01:00
Jordi Mas
47d0b2d588 Update Catalan translation 2021-02-14 21:37:08 +01:00
Balázs Úr
10a98c43b8 Update Hungarian translation 2021-02-14 18:46:36 +00:00
Christopher Davis
c28760894a ui: Use GNOME 40 Empty View Styling
We can't use HdyStatusPage right now because it would break DnD, as
reported in https://gitlab.gnome.org/GNOME/gtk/-/issues/808

So, update the styling instead.
2021-02-14 13:23:39 +00:00
A S Alam
1c784b1c9a Update Punjabi translation 2021-02-13 23:46:11 +00:00
Ondrej Holy
c652d4d4cc Post release version bump 2021-02-13 16:46:48 +01:00
Ondrej Holy
f912e6dc82 Release version 40.beta 2021-02-13 16:46:48 +01:00
Ondrej Holy
50fc39c51c preferences-window: Print error from gtk_builder_add_from_resource
Currently, gtk_builder_add_from_resource silently fails with old libhandy
version which leads to weird crashes. Let's print the returned error to
be obvious what is going on.
2021-02-13 16:46:48 +01:00
Ondrej Holy
9012c36da8 build: Bump libhandy dependency
Nautilus currenlty crashes with libhandy version older than 1.1.90.
Let's bump the dependency to prevent that.
2021-02-13 16:46:48 +01:00
António Fernandes
8a8fa32939 list-view: Properly match for Star column
We have been matching the Star column by it's title, ever since it was
first introduced by commit a9c446afe2

Worse: we have been using an untranslated string. This means that if
the string is localized clicking the star icons does nothing.

Match the column by its key in the hash table instead.
2021-02-13 15:39:07 +00:00
António Fernandes
28e682f412 list-view: Hide Star column title
While "Star" is 4 chars long in English, it's longer in other languages.

This means the column may become much wider than needed for displaying
a small star icon, which both looks bad and takes away space from other
columns.

Since this is a column of star symbols, we don't really need a title.

But setting an empty title makes the columns too narrow (16px), which
gets covered by the overlay scrollbar.

So, in addition to removing the title label, set a 48 fixed width for
the column, which provides enough gutter for the overlay scrollbar.
2021-02-13 15:39:07 +00:00
Anders Jonsson
9c5fd94926 Update Swedish translation 2021-02-13 12:50:50 +00:00
Daniel Șerbănescu
40f8b48179 Update Romanian translation 2021-02-13 10:51:46 +00:00
James Westman
a65fe36d6d location-entry: Highlight basenames of completions
Or, rather, dim the dirnames so the basenames stand out.
2021-02-12 23:56:07 +00:00
James Westman
dbd5be23a6 location-entry: Use relative completions for relative paths
If the user enters a relative path, we get absolute paths as in the
completion popover, which is quite jarring and makes it less useful.

Instead, truncate the prefix, such that the completions dropdown text
aligns with the entry text.
2021-02-12 23:47:26 +00:00
James Westman
4fad42b7b4 location-entry: Use g_strstrip()
Replace g_strchomp and g_strchug with g_strstrip, for simplicity.
2021-02-12 23:47:26 +00:00