Commit graph

20893 commits

Author SHA1 Message Date
Mingcong Bai 1706678bda Update Chinese (China) translation 2018-05-28 09:46:02 +00:00
Carlos Soriano d3a6c2bf1f CI: Run the tests before the bundle
It makes a bit more sense
2018-05-25 22:27:05 +00:00
Ernestas Kulik 3cdf284a1f CI: pass --libdir to Meson
It defaults to lib64 and that might be an issue.
2018-05-25 22:24:36 +03:00
Ernestas Kulik 4432a75d79 CI: export all Meson logs
The install log might be useful.
2018-05-25 22:10:22 +03:00
Carlos Soriano e6a94fcef3 Flatpak/CI: Fix exiv.org being down
So the site is down, and the archive cannot be downloaded...

I uploaded the archive to an issue in GitLab
https://gitlab.gnome.org/GNOME/nautilus/issues/458.

If it works...

It works.
2018-05-25 17:10:12 +02:00
Cheng-Chia Tseng 871051f60f Update Chinese (Taiwan) translation 2018-05-25 13:02:54 +00:00
Carlos Soriano 3b8f238624 Flatpak: Add yaml variant
I needed for a talk because it's more compacted, and we should switch to
it as soon as Builder gets support for yaml!
2018-05-25 12:09:48 +02:00
Jordan Petridis 91cc228171
CI: Re-Enable the display tests 2018-05-22 19:48:23 +03:00
Ernestas Kulik 4b28831306 view-icon-controller: Use a gesture for button press event
Additionally, this requires setting adjustments in the underlying flow
box after removing the (now deprecated) event box.
2018-05-22 16:52:49 +03:00
Ernestas Kulik 873156cf85 window: Check if a tab was hit on right click
Since we have to handle the event in reverse order (because GtkTreeView
claims the event sequence in the capture phase, meaning that the events
won’t bubble up), the context menu for notebook tabs will open
everywhere, because the event handler is not stopped by those lower in
the hierarchy. A simple check if the cursor is on a tab will prevent
that.
2018-05-22 16:52:49 +03:00
Ernestas Kulik 13a8d3efac list-view: Use gesture for button event handling 2018-05-22 16:52:49 +03:00
Ernestas Kulik 1029a818ae toolbar: Use gestures for nav button right-clicks 2018-05-22 16:52:49 +03:00
Ernestas Kulik a40f2b5415 pathbar: Use gesture for path button middle-click handling
This also moves out control-clicking to the “clicked” signal handler, as
it gets harder to make it work with self-click logic.
2018-05-22 16:52:49 +03:00
Ernestas Kulik 1a37805932 pathbar: Use long press gesture for scrolling 2018-05-22 16:52:49 +03:00
Ernestas Kulik 4ff6b8388a window: Use gesture for button press events 2018-05-22 16:52:49 +03:00
Ernestas Kulik 390b6519b1 notebook: Use gesture for button press events 2018-05-22 16:52:49 +03:00
Ernestas Kulik c9180d6065 list-view: Use generic “event” signal
The finer-grained signals/vfuncs are deprecated. It would be possible to
use gestures for some of them as well.
2018-05-22 16:52:49 +03:00
Ernestas Kulik 2fc335e389 batch-rename-dialog: Connect to the “event” signal
For handling motion events, using an event controller would be the GTK+
4 way, but motion controllers are not available in GTK+ 3.
2018-05-22 16:52:49 +03:00
Ernestas Kulik cadede9bfe files-view: Connect to the “event” signal for scrolling
GTK+ 4 no longer has the fine-grained signals and vfuncs for various
events. Additionally, the scroll_event override in NautilusFilesView
doesn’t seem to be ever called, so this commit removes it.
2018-05-22 16:52:49 +03:00
Ernestas Kulik 81c4c0d175 meson.build: Enable deprecation warnings 2018-05-22 16:52:49 +03:00
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