Commit graph

20923 commits

Author SHA1 Message Date
Ernestas Kulik 6310de4d71 properties-window: Drop deprecated GtkStyleContext API
This is kind of a hack, but we can still use
gtk_style_context_get_color() to get the color of the pie slice. Two
hacks, in fact, as this adds a separate style class to hold the color of
the border.
2018-05-22 16:52:49 +03:00
Ernestas Kulik bde55f4189 eel: Remove a11y utilities
In theory, it would be possible to just drop the GAIL code and keep the
header, but, given that NautilusCanvasItem is the only remaining
consumer, the needed bits can be moved over.
2018-05-22 16:52:48 +03:00
Ernestas Kulik 0cad9482c0 eel: accessibility: Use ATK to get accessible object
atk_gobject_accessible_get_object() does the same thing and doesn’t
require redefining quarks or using magic strings.
2018-05-22 16:52:48 +03:00
Ernestas Kulik 673c81cf9f general: Copy gnome-desktop thumbnailing code
This is one of prerequisite steps to take before fully switching to GTK+
4, as gnome-desktop has code, depending on GTK+ 3. Since the
thumbnailing machinery is self-contained, it can easily be just copied
over.
2018-05-22 16:52:48 +03:00
Ernestas Kulik 0aca206f8a list-model: fix boolean expression
We’re checking if the column index is in the range, so using OR is not
the right way to do that.
2018-05-22 16:52:48 +03:00
Daniel Mustieles af57c3e39a Updated Spanish translation 2018-05-22 13:43:06 +02:00
Marek Cernocky d675ea0efd Updated Czech translation 2018-05-22 13:44:49 +02:00
George Mocanu e93490f966 properties-window: Fix typo
Use sentence capitalization for "Parent folder" label.
2018-05-21 21:13:43 +03:00
George Mocanu a908985929 properties-window: Don't display "Parent folder" for trash
The "Parent folder" label is displayed for multi-item properties
in Trash, alongside with the "Original folder" label.

The "Parent folder" label shouldn't be displayed since there is
another label for trashed items and the informations displayed
by it are useless for this kind of items.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/417
2018-05-21 21:12:35 +03:00
George Mocanu 66013b38c5 properties-window: Add more information to File Properties in Trash
The File Properties Dialog provides too little information for files in
Trash. An example for this problem would be not being able to distinguish
between two files with the same name in Trash.

Add "Trashed on" and "Original folder" labels to File Properties window
for trashed files.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/417
2018-05-21 21:12:35 +03:00
Harish Nair 563c5f8d18 rename-file-popover: Remove redundant calculation
Removes a calculation that has already been done before.
Instead uses the variable that contains the result of the calculation.
2018-05-21 19:53:23 +05:30
Mingcong Bai 3ed7f486f5 Update Chinese (China) translation 2018-05-21 14:02:09 +00:00
George Mocanu 11b91e6113 properties-window: Show "Open with" tab in Trash
Although nautilus allows opening files from Trash, properties
window doesn't show "Open with" option.

This patch solves this by adding "Open with" option in the
properties window of trashed files.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/432
2018-05-21 07:47:40 +00:00
George Mocanu 194be78a3a properties-window: Don't change permissions in Trash
Currently there is a menu which allows changing the permissions
for trashed files.

This is unintended behaviour since changing the permissions for
trashed files is not supported anyway, resulting in an error
message or even Segmentation Fault.

This patch solves this issue by removing the permission access
menu for trashed files.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/432
2018-05-21 07:47:40 +00:00
Marek Cernocky 3f006c2fd7 Updated Czech translation 2018-05-21 09:36:27 +02:00
Carlos Soriano ac886102c2 general: Revert to allow running binaries and scripts
Recently we removed the ability to launch binaries and scripts in
commit 3a22ed5b8e.

A few cases appeared that we need to support, specially for enterprise
and content creators. Specifically, cases similar to https://gitlab.gnome.org/GNOME/nautilus/issues/434

This also shows that is hard to predict cases like these, as some
complex setups might be needed for specific workflows.

This commits allow to run binaries and scripts as before, and further
investigation in these cases need to be done if we ever want to tweak
the workflow of running binaries.

More discussion about improving binaries/script handling is being
proposed and discussed in https://gitlab.gnome.org/GNOME/nautilus/issues/443
2018-05-21 06:29:14 +00:00
Emin Tufan Çetin ce61f4848d Update Turkish translation 2018-05-20 19:26:40 +00:00
Philip Langdale a1751d3d87 nautilus-application: Publish window->location mappings
This is a reworking of a long standing Ubuntu patch that publishes
the set of locations open in each Nautilus window. The motivation
for this change is that a desktop environment providing special
icons for things like removable devices and the trash can match
windows to those icons for highlighting purposes.

In the original incarnation, Unity provided these icons. In today's
world, I'm maintaining a set of patches for dash-to-dock/ubunut-dock
that provide these icons too.

The original implementation uses Xids to identify windows, but Xids
aren't a thing in Wayland so this mechanism is a dead end. Instead,
we can use the 'gtk application window object paths' which are
published over dbus by GtkApplications, including Nautilus.

Mutter already detects these, and makes them available on MetaWindows.

The original patch added the mapping property to the fileManager1
interface, and I have left that part as-is, but it's likely not to
be the right place to put it. fileManager1 is a generic interface
and a property that assumes a GTK behaviour doesn't seem right.

We could obviously add it to a new interface under org.gnome.Nautilus,
but this would be Nautilus specific - although there isn't a huge
scope for other file managers to implement this property, so perhaps
that's just fine.

dash-to-dock discussion is readable here:

https://github.com/micheleg/dash-to-dock/pull/677
2018-05-19 07:26:20 -07:00
Piotr Drąg f7460fb004 Update POTFILES.in 2018-05-18 18:08:38 +02:00
Alexandru Fazakas 93fb7954fb test: Remove useless macro definition
This definition in the dir_has_files unit test is not used,
so it should be removed.
2018-05-18 14:56:34 +00:00
andrei-stratila 543f5ae369 Search filter popover on [Ctrl]+[F]
Currently using the [Ctrl]+[F] keyboard shortcut toggles the search bar
visibility.

Using the [Ctrl]+[F] keyboard shortcut shows the search filter popover
(and gives it keyboard focus).

To add this a new action "search-visible-popover" is added which in addition
to the "search-visible" action adds the feature to focus and show the search
dropdown menu.

https://gitlab.gnome.org/GNOME/nautilus/issues/333
2018-05-18 14:53:27 +00:00
Harish Nair 122f201dcf rename-file-popover: Warn when name exceeds size limit
When a file is renamed if the name entered by user has a length that
exceeds maximum limit then it shows a window with a warning.

The problem is that once the user has acknowledged the warning, the file
name goes back to its original name. The user is not given a chance to
make slight modifications in the name that was entered.

To fix this problem, a warning will be given in the popup itself where the
new filename is entered. That way the user will be able to make slight
changes so that the file name is within the size limit.

https://gitlab.gnome.org/GNOME/nautilus/issues/148
2018-05-18 14:51:31 +00:00
Alexandru Fazakas bfc3aebe04 test: Add dir_has_files unit test
In this patch we added an unit test with 3 simple tests for the
dir_has_files.

https://gitlab.gnome.org/GNOME/nautilus/issues/224
2018-05-18 14:47:36 +00:00
Ernestas Kulik f3be754974 tests: directory-async: Use GMainLoop
Using the GTK+ main loop doesn’t make a lot of sense in this case.
2018-05-18 14:39:27 +00:00
Ernestas Kulik e686c29779 general: Clean up headers and their inclusions
This commit removes redundant header inclusions and tries to optimize
headers by using forward declarations of types in headers. Such
optimization should generally make builds speedier in that changes in
certain headers will not cause unrelated sources to be rebuilt.
2018-05-18 14:39:26 +00:00
Ernestas Kulik 7696d69dcb trash-monitor: Use GLib macros to define type 2018-05-18 14:39:25 +00:00
Ernestas Kulik c268039b32 canvas-view-container: Use GLib macros to define type 2018-05-18 14:39:24 +00:00
Ernestas Kulik 1e9fcce70e properties-window: Use GLib macros to define type 2018-05-18 14:39:24 +00:00
Ernestas Kulik 1de2ec116d eel: glib-extensions: Move functions to Nautilus
They’re only used once, so why not.
2018-05-18 14:39:23 +00:00
Ernestas Kulik cfa26f0cfe build: Set a couple env vars when running tests
This will save some time/thinking when running tests manually.
G_TEST_BUILDDIR and G_TEST_SRCDIR will be useful if
g_test_build_filename() is ever used, since our primary build mode is
outside the source directory, which would break the function.
2018-05-18 14:05:53 +00:00
Carlos Soriano 2e331b6c80 CI: Use 3.28 image until master is fixed
And run only headless tests, as things are a bit on flow now and the
ostree image is missing some needed bits.
2018-05-18 15:47:09 +02:00
Carlos Soriano 487e907b81 Flatpak: Install Meson from sources
Until we can use the master runtime that includes Meson 0.46.0.
2018-05-18 08:45:27 +02:00
Carlos Soriano e212a3f703 Flatpak: Use 3.28 version
Until master is fixed, due to the rebase to fdo 1.8.
2018-05-17 16:35:04 +02:00
Carlos Soriano b4282720a9 Flatpak: Update to fdo 1.8 runtime 2018-05-17 13:01:56 +02:00
Marcos Lans c9dc1d2eb7 Update Galician translation 2018-05-15 21:56:30 +00:00
Matej Urbančič c61e902213 Updated Slovenian translation 2018-05-15 22:37:43 +02:00
Matej Urbančič 373108e21e Merge branch 'master' of gitlab.gnome.org:GNOME/nautilus 2018-05-15 21:04:38 +02:00
Carlos Soriano e33e181082 Bug.md: Don't use tasks
So it doesn't appear in the list of task to be done for the issue.
2018-05-14 17:28:55 +00:00
Daniel Șerbănescu 747aae2d3d Update Romanian translation 2018-05-14 16:17:34 +00:00
Wong Heung Sang 49718175b7 nautilus-file.c: Fix open writable file in recent tab
File opened in recent tab now is read-only
when it is writable.

Replace nautilus_file_info_get_uri ()
with nautilus_file_info_get_activation_uri ()
fix the problem.

https://gitlab.gnome.org/GNOME/nautilus/issues/378
2018-05-14 10:16:05 +00:00
António Fernandes 694e4396c7 file: Remove link info attribute
Leftovers from NautilusLink removal.
2018-05-14 00:17:08 +01:00
António Fernandes 857f65bdb3 file: Drop nautilus_file_contains_text
Originally introduced in commit e7aa2e757c,
this function used to be a lot more complex, but now it is just a
shorthand for nautilus_file_is_mime_type (file, "text/plain").

Its only use was when launching script files on activation.
2018-05-13 23:34:09 +01:00
Ernestas Kulik f183d59337 general: Remove remaining desktop-file-related code 2018-05-12 22:02:04 +03:00
Ernestas Kulik 14b734b34a directory-async: Use Nautilus debug logger
This will help avoid some of the spam.
2018-05-12 18:29:48 +03:00
Ernestas Kulik c570971a88 file-operations: Remove unused operation
Since launching desktop files is no longer possible, the operation to
mark them as trusted goes unused.
2018-05-12 16:39:56 +03:00
Ernestas Kulik 7d44f84176 general: Remove preferences for script execution
Since the settings schemas no longer contain the required settings,
opening the preferences window causes an error and a call to abort().
This can be reverted if the ability to launch scripts is reintroduced.
2018-05-12 16:34:03 +03:00
Kukuh Syafaat 118c2e18b2 Update Indonesian translation 2018-05-12 05:36:16 +00:00
Ernestas Kulik a5520fd893 directory: Add method to query maximum filename length
This is to be used by a potential fix for
https://gitlab.gnome.org/GNOME/nautilus/issues/148.
2018-05-11 11:14:18 +03:00
Jordan Petridis 3a35b6035a
gitlabci: Extend the expiration period of the flatpak bundle
It's often the case that an MR will be opened and call for testing or an artifact will be linked in an issue.
But by the time people review the changes or try to test it them, the provided bundle will be already gone.

In the early days of the gitlab migration the expiration was commonly set to a small interval to ease the transition and not eat up the resources of runners. This should no longer be required going forward and the expiration date can be more flexible.
2018-05-10 12:39:11 +03:00
Matej Urbančič 489643ef33 Updated Slovenian translation 2018-05-09 18:00:07 +02:00