Commit graph

20923 commits

Author SHA1 Message Date
Piotr Drąg 29f7948f8f Update POTFILES.in 2018-05-09 17:44:29 +02:00
Carlos Soriano 6b0217a994 Fix typo... 2018-05-09 17:02:26 +02:00
Carlos Soriano c79aff62ab properties-window: Remove computer:/// handling
We don't use it anywhere else and gvfs is considering dropping it.

So let's remove it to allow gvfs go forward with its removal.

See: https://gitlab.gnome.org/GNOME/nautilus/issues/376
2018-05-09 16:51:18 +02:00
Carlos Soriano 95bb18fd31 properties-window: Remove desktop file handling
Since we removed desktop support for launching and special handling in
the views, it makes sense to remove the handling in the properties
window too.

Nautilus was doing a bad job as a desktop file editor, and didn't keep
up with more relevant fields for long.
2018-05-09 14:24:20 +00:00
Carlos Soriano 55b122f89f file: Remove get_target_uri
It's now effectively the same as get_uri since NautilusLink is gone.

We need to think whether those need to be get_activation_uri though.
2018-05-09 14:24:19 +00:00
Carlos Soriano b1cb977812 general: Remove NautilusLink
It was used for desktop files, netscape url links and other links.

However this is not really useful anymore with the desktop gone, so it
makes sense to remove it from Nautilus and have a big clean up.

This also was one of the blockers for the backend rework.
2018-05-09 14:24:19 +00:00
Carlos Soriano 0e0f5b9a33 files-view: Remove support for creating website links
This might made sense with the desktop...althought not sure how used
was it.

For Nautilus as an app this probably doesn't make much sense, and
probably it was not very used...

Remove it so we are a step closer to remove nautilus-link handling.
2018-05-09 14:24:18 +00:00
Carlos Soriano 16c7864e5f file: Remove special treatment for desktop files
We were modifying the content of the desktop file when the file was
renamed.

However we want to provide a more realistic visualization of what the
file really is since we no longer use desktop files for launching apps
on the desktop.

Remove the special handling of desktop files.
2018-05-09 14:24:17 +00:00
Carlos Soriano 3a22ed5b8e general: Don't allow launching binaries or programs in general
For long we used to support that since the desktop was part of Nautilus.
Also, back then we didn't have a Software app where you are expected to
installs apps. Back then it was common for apps to be delivered in
a tarball, nowadays that's out of question.

Now that the desktop is long gone, launching binaries and desktop files
from within Nautilus is not as useful. Not only that, but we are moving
towards a more sandboxed system, and we should use the standard and
system wide support for launching apps based on users choices.

We also are not able to be secure enough to handle this, as we saw in
the past we allowed untrusted binaries to be launched, and therefore
we had a CVE (CVE-2017-14604) for Nautilus. We are not being audited
(afaik) and we are not in a position that we can let this issues slip.

With that altogether, this prevents launching binaries or programs from
Nautilus.

Closes: https://gitlab.gnome.org/GNOME/nautilus/issues/184
2018-05-09 14:24:17 +00:00
Carlos Soriano 8348335820 files-view: Remove obsolete constants 2018-05-09 14:24:17 +00:00
Jordan Petridis c2efeabf18 gitlabci: Add stop_review job.
Split the enviroment deployment from the flatpak job.
review job depends on the flatpak job, and re-exports its
artifacts for now. Then it creates a review app, that shows
a link to the flatpak bundle.

This commit also restricts enviroment deployments for the master
branch of GNOME/nautilus.
2018-05-09 11:10:17 +00:00
Marek Černocký 2b9b773494 Updated Czech translation 2018-05-08 22:41:21 +02:00
Daniel Mustieles 52dcfe6898 Updated Spanish translation 2018-05-08 13:25:44 +02:00
António Fernandes 8517d545e0 window: Use our own accelerators API for consistency
It's just a wrapper for gtk_application_set_accels_for_action with
the required type cast. Just a cosmetic change, no behavior change.
2018-05-07 10:57:31 +00:00
António Fernandes ab16292e69 window: Allow dead_tilde key to trigger location entry
The standalone "~" key ("asciitilde") works as a convenient shortcut
to type home-relative paths into the location entry.

However, some keyboard layouts don't have an standalone "~" key but
rather a "dead tilde" key. This makes the existing shortcut unavaliable
for some keyboard layouts.

This is surprising for most people, because they have a tilde key and
the Keyboard Shortcuts window advertises a shortcut for the tilde key.

So, add the dead tilde key as an alternative shortcut.

Note: Searching for tilded characters or the tilde character itself
is still possible by revealing the search entry is explicitly.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/372
2018-05-07 10:57:30 +00:00
Carlos Soriano 1b60679a86 CI: Use a variable for the dbus id 2018-05-07 07:58:06 +00:00
António Fernandes 47845327f9 operations-ui-manager: Always get dir item count
When comparing conflicting folders, we provide the item count for each.
However, sometimes we do not have the directory item count.

Make sure to request the item count before setting the size label.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/269
2018-05-07 07:32:35 +00:00
António Fernandes 328cec78c1 operations-ui-manager: Use better default labels
We are showing "(null)" in the conflict dialog.
Example: https://gitlab.gnome.org/GNOME/nautilus/issues/269

Exposes the programming concept of NULL is wrong in itself, and in this
context it may lead a person to think it means the folder is empty.

Instead, get the strings with good default fallbacks.
2018-05-07 07:32:35 +00:00
Fabio Tomat c3346dec62 Update Friulian translation 2018-05-06 15:11:46 +00:00
Piotr Drąg 6e86ccfd0d toolbar: Don’t mark placeholder strings for translation 2018-05-04 20:32:16 +02:00
Piotr Drąg e337fe862f Update POTFILES.in 2018-05-04 20:25:37 +02:00
Carlos Soriano dcfa5f1866 CI: Add GitLab Review Apps
So a link is shown with the generated Flatpak on the MR.
2018-05-04 08:45:58 +00:00
Carlos Soriano 1018ea7bf6 CI: Indent correctly 2018-05-04 08:45:58 +00:00
Carlos Soriano 9d36f855fd pathbar: Remove unnecessary button type 2018-05-03 23:45:56 +02:00
Carlos Soriano 08b15aa418 pathbar: Add icon for other locations too
So we have the same as Starred, Recent, etc.
2018-05-03 23:45:28 +02:00
Carlos Soriano ee7bd9bd15 pathbar: Build menu using Glade
So we allow easy tweaking.
2018-05-03 23:34:26 +02:00
Carlos Soriano fbe7cac0a0 pathbar: Remove right click menu
Since the last design, the right click menu clashes with the left
click menu that is designed.

Since the pathbar is less used for interaction except for the last
button, we can simplify the UX and only use the left click.

The hierarchy of the pathbar can still be clicked with the middle
button to open in a new tab, as it's done in web browsers.
2018-05-03 23:11:47 +02:00
Carlos Soriano 4dfec0dd81 toolbar: Use slide right for the operations button
It looks much nicer, noticeable and doesn't occupy space when the
child is not visible.
2018-05-03 22:49:16 +02:00
Carlos Soriano f278574df4 general: Add actions to the toolbar
Generally actions in Nautilus were accessed through context menus or
keyboard shorcuts. However, those are not very discoverable and are
not touch friendly.

Even more, in list view it was not possible to access background actions
since there is always a selection, making Nautilus UX quite poor in that
case.

Also some actions were placed in the app menu, which didn't was not as
clear for some people given that we have most of actions in the toolbar.

In all, we came with a new design that solves the main goals of
discoverability, touch friendly and accessibility for background actions
and app actions, and now are placed in the toolbar together with an
overhaul of the looks of Nautilus path bar and search.

There is still work to do, specifically finding a design that works for
the selection actions and also to replace the current information
floating bar. The later might be just a different goal. However this
goes in the right direction.

See https://gitlab.gnome.org/GNOME/nautilus/issues/322
2018-05-03 22:43:39 +02:00
Carlos Soriano 7346702032 query: Add safeguard for public API 2018-05-03 22:34:31 +02:00
Carlos Soriano 7831866d39 window-slot: Keep query editor ownership on the window-slot
So it stays alive between uses.
2018-05-03 22:34:23 +02:00
Carlos Soriano deccd0151a window-slot: Use properties for signaling active changes
We were using properties and signals, but properties have already
built-in signals with notify:: for properties changes.

Use that so we have a simple and single way to notify about changes.
2018-05-03 22:34:16 +02:00
Carlos Soriano 1c03da2b89 views: Proxy the view main values and states
So they can be accessed easily from outside the view or window-slot.

This is useful for preventing layer violation, as we had in the past.
2018-05-03 22:33:44 +02:00
Carlos Soriano 68d6a01c92 debug: Add thumbnails flag
So we can query them away.
2018-05-03 22:32:15 +02:00
Joanmarie Diggs c8744eafc3 Eliminate accessible children-changed event flood on container repopulation
When the canvas container is repopulated (e.g. when using back/forward,
or pressing Esc while in a search), finish_adding_new_icons is called
leading to an accessible-children-changed event flood. We can distinguish
these unwanted notifications from desired notifications by comparing the
number of new icons to add with the size of the container's icon set.

Note that we cannot reliably identify this condition by monitoring the
is-loading property of the view: Loading officially can end while icons
are still being added. This is especially true in the case of very large
icon sets, which is the exact scenario we're trying to avoid.
2018-05-03 07:31:03 -04:00
Yuras Shumovich 36758f056d Update Belarusian translation 2018-05-02 17:22:02 +00:00
Ernestas Kulik d5a1402c1c view-model: Remove unused function
The only use of nautilus_view_model_set_items() has been replaced with
nautilus_view_model_add_items().

Related: https://bugzilla.gnome.org/show_bug.cgi?id=795307
2018-05-02 15:55:47 +00:00
Peter Vágner 8c9203d6a8 Preferences: Add more ATK relations and accessible-roles to make the
dialog more appealing to screen reader users
2018-05-02 15:41:57 +00:00
Peter Vágner c814b8f3ad Preferences window: Add proper label relationships to unlabeled
comboboxes for screen reader users
2018-05-02 15:41:56 +00:00
Carlos Soriano e7ccc04f3f Update to include epic label 2018-04-30 15:50:00 +00:00
Carlos Soriano 7a39b0b76d Add epic template 2018-04-30 15:45:34 +00:00
Carlos Soriano 2b5bb20c94 Adwaita: Remove the icon for the devel style
Jakub didn't find it very pleasant, and it kinda gets in the way.

The coloring should be enough too.
2018-04-28 20:08:18 +02:00
Ernestas Kulik feb69b4979 build: Use install_data() to rename icons
Since 0.46.0, Meson allows renaming files when installing them. This is
useful to replace any workarounds to achieve the same (namely, the
icons).
2018-04-28 20:22:11 +03:00
Ernestas Kulik 0d65da33bd build: Pass dependency to resource header
libnautilus depends on both generated resource files, but the header is
only needed by the executable and there is no dependency on it to enable
build parallelism, since both targets can be built independent of each
other before linking.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/380
2018-04-28 20:22:07 +03:00
Carlos Soriano 1ed0610075 meson.build: Use proper FIXME notation 2018-04-27 14:30:57 +00:00
Jordan Petridis 0e80da2a12
gitlabci: Generalize the flatpak job. 2018-04-27 16:31:15 +03:00
Xiaoguang Wang 567bd86884 file-view: Add unmount notification
Unmounting disk from file view context menu shows notification same as
unmounting from sidebar.

https://gitlab.gnome.org/GNOME/nautilus/issues/379
2018-04-26 10:47:20 +08:00
Marek Černocký e4adef55a5 Updated Czech translation 2018-04-24 20:46:17 +02:00
Marco Trevisan (Treviño) f3251831a9 gtkplacesview: Update to last code 2018-04-24 01:05:47 -05:00
Joanmarie Diggs 0c80a84576 Eliminate accessible name-changed event flood during initial load
Accessible name-changed events should not be emitted during the
initial load of the icon container. They should only be emitted when
a user-triggered action such as renaming the file causes the change.

This event is being emitted when the editable_text property is being
set. During the initial load the value is null, so check for that
condition and only emit the event when the original value is non-null.
2018-04-23 16:34:25 -04:00