Commit graph

20748 commits

Author SHA1 Message Date
Carlos Soriano 8ac9c87306 Flatpak: Allow access to gsettings folder
Recently we have been seeing that gsettings doesn't work inside the
Flatpak build of Nautilus.

In 3f6cd2feb2
we gave full host access to Nautilus, so I expected that no more
--filesystem permission would be necessary.

For some reason... we still need to put that. Although it looks like a
bug somewhere.

For now, let's just explicitly allow access the desrt folder.
2018-04-08 18:09:28 +02:00
Alexandru Fazakas 86080e646a preferences-window: Fix icon views captions order
The selected icon views captions show up in a wrong order below
files (e.g. third, first, second option instead of first, second,
third).

This is unintuitive and not intended.

This patch fixes the issue by changing the ordering of the captions.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/343
2018-04-07 22:22:44 +03:00
Alexandru Fazakas 9818abb350 window-slot: Instantly apply "Use new views" preference
The use new views preference checkbox does not update the view.
In order for it to take effect, one needs to toggle view.

This behaviour is not intended, and this should work same as
for other checkbox preferences.

We're fixing this by recreating the view whenever the preference box
is ticked/unticked.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/278
2018-04-07 17:31:01 +00:00
Rūdolfs Mazurs d409e85c67 Update Latvian translation
(cherry picked from commit 48b177ae67)
2018-04-07 16:07:35 +00:00
Carlos Soriano bdb25d1ef8 path-bar: Support starred and recent visuals
So it has some nice icon showing.
2018-04-05 13:07:44 +02:00
Carlos Soriano ca523f91c5 path-bar: Get the appropriate parent
Forgot to change one of the get_parent calls in c0198eca65.

In any case, this is really bad... we should use some g_object_set
I guess.
2018-04-05 12:57:59 +02:00
Carlos Soriano df6324b696 places-sidebar: Make selection grab less attention
While selection is important for the content in the view or the current
path bar location, it doesn't seem to be so important for the sidebar,
since it's used more like a shortcut place to quickly navigate to
important places.

Also, the sidebar is more about showing the current state selected, and
not a selection of items.

To address both points seems to make sense to make the "selected" color
be less prominent than blue, and instead give a neutral gray.

This works gives the sidebar selected item a gray color.
2018-04-05 11:39:59 +02:00
Carlos Soriano c0198eca65 path-bar: Make style closer to mockups
The path bar would be looking better having a lighter design, and at the
same time a bit more colorful.

Ideally we would implement the new pathbar with animations, new styling,
etc. But that requires proper responsive design support and animation
support, which won't happen soon.

The relevant mockups are at https://wiki.gnome.org/Design/OS/Breadcrumbs

Partial work by Nikita Churaev at !145, modified styling by Lapo
Calamandrei.

Closes: #281
2018-04-05 11:39:59 +02:00
Alexandru Fazakas 89e362ae13 test: Add file-utilities unit test
File utilities operations need to be tested thoroughly everytime
we make changes to make sure they're fine to use further.

This patch introduces an unit test file for the
nautilus_file_selection_equal.
2018-04-04 12:10:05 +03:00
Carlos Soriano 0ed81f3f4c CSS: Do some devel styling that doesn't interfere with actual design 2018-04-03 14:22:05 +02:00
Carlos Soriano e8ca89c5af Merge branch 'sync-bus-acquisition' into 'master'
freedesktop-dbus: Acquire bus connection synchronously

See merge request GNOME/nautilus!188
2018-04-03 12:12:18 +00:00
Ernestas Kulik 3014f69485 freedesktop-dbus: Defer D-Bus property setting
In some cases (particularly when no I/O is performed, e.g. opening
other-locations:/// directly), the FDO FileManager1 object
OpenLocations property is set before the connection is made. This commit
makes the code defer doing that until then.
2018-04-03 15:04:01 +03:00
Carlos Soriano a34319fe37 Merge branch 'issue-331' into 'master'
Don't use eel_show_error_dialog

See merge request GNOME/nautilus!173
2018-04-03 11:53:25 +00:00
George Mocanu 0793592df1 properties-window: Don't use eel_show_error_dialog
Instead of using eel_show_error_dialog, use the show_error_dialog
function from nautilus-ui-utilities.h header.

https://gitlab.gnome.org/GNOME/nautilus/issues/331
2018-03-31 13:09:45 +03:00
Christophe Fergeau 85715707b1 preferences: Fix MB/MiB confusion
NAUTILUS_PREFERENCES_FILE_THUMBNAIL_LIMIT really uses MiB as its unit,
not MB as we multiply its value by 1024*1024 (MEGA_TO_BASE_RATE) in
thumbnail_limit_changed_callback(). This commit changes
MEGA_TO_BASE_RATE and its maximum value so that it shows a number using
MB unit as advertised.
2018-03-30 12:51:46 +02:00
Christophe Fergeau 1358dc6beb build: Fix libm detection
find_library expects the library name without the 'lib' prefix,
otherwise it will be looking for "liblibm"
2018-03-30 12:51:46 +02:00
Ernestas Kulik f441aec32f rename-file-popover-controller: Make popover recyclable
Creating and destroying the controller each time we want to rename
something results in not being able to pop down the popover, which leads
to an inconsistent look.

The “containing-directory” in the file name widget controller parent
class needed to be made non-construct-only, as otherwise it would be
impossible to reuse the same controller.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/260
2018-03-29 14:01:12 +03:00
Марко Костић 65a116f148 Update Serbian translation
(cherry picked from commit 470a13b04a)
2018-03-28 20:48:51 +00:00
Carlos Soriano 16c0115593 Revert "Fix path bar changing size when navigating"
This reverts commit 01dca52cbd
2018-03-28 08:33:20 +00:00
Nikita Churaev 01dca52cbd Fix path bar changing size when navigating
This was due to size differences between bold and regular labels. The
problems was that invisible widgets always return 0 when their size is
requested and Nautilus tried to request the width a regular label would
take from an invisible bold label with the same text. This patch fixes
this by showing the label before measuring it and hiding it afterwards.
2018-03-28 07:35:30 +00:00
Matej Urbančič bac9dfd00b Updated Slovenian translation 2018-03-27 21:31:15 +02:00
Carlos Soriano 6b8a042def tag-manager: Comment the return element-type and memory ownership transfer 2018-03-27 19:09:30 +00:00
Carlos Soriano d08d4c8fe1 window: Hide starred items in the sidebar if not items present
We were always showing the starred item in the sidebar, with an empty
state in the resulting view if no starred file was present.

This is usually what we want for regular items. However, in 3.28 the
feature is not working as good as we expected for those not using
the tracker directories as heavily as other users.

In order to prevent being too annoying, we can hide the sidebar item if
no starred files are present, while still providing the context menu
to be able to use the feature.

This can be reverted once we are able to star any file, once tracker has
the required API to star a file and have a sync callback for its result.

Closes: https://gitlab.gnome.org/GNOME/nautilus/issues/338
2018-03-27 19:09:30 +00:00
Matej Urbančič cb497f1cc8 Added Slovenian translation 2018-03-27 21:00:30 +02:00
Rahul Verma c6cd36999f application: Fix memory leak
When displaying an error dialog box, a string that stores the error details, is not being freed. So use g_autofree instead.
2018-03-26 23:55:03 +05:30
Alexandru Fazakas 8985b2261f canvas-container: Remove unnecessary g_asserts
is_selected is a binary filed of NautilusCanvasIcon (thus its value is
modulo 2), while select is a gboolean, which is a typedef for gint.

We never pass integers to the icon_set_selected call as arguments, so
it's safe to remove these two g_asserts.
2018-03-26 17:34:44 +00:00
Stas Solovey d09c45e9e6 Update Russian translation
(cherry picked from commit 4cfba2912c)
2018-03-26 17:06:59 +00:00
Cédric Valmary b54ede9821 Update Occitan translation 2018-03-26 12:52:27 +00:00
Milo Casagrande 0ebc4bb5de Update Italian translation
(cherry picked from commit 99b4a0d668)
2018-03-26 10:18:30 +00:00
Ernestas Kulik e21e3e1d8c canvas-item: Remove code to draw stretch handles
Leftovers from 74dd9c9f72.
2018-03-26 13:05:54 +03:00
Cheng-Chia Tseng 2066b3110e Update Chinese (Taiwan) translation
(cherry picked from commit 17fe5eb768)
2018-03-26 09:34:13 +00:00
Ernestas Kulik 816673a953 general: Listen to icon theme changes on application startup
Currently, the code connects to GtkIconTheme::changed in class_init(),
which requires an active display in any test that tests the NautilusFile
API. Connecting to the signal during application startup instead makes
more sense.
2018-03-24 23:19:38 +02:00
Ernestas Kulik eef267bf9d directory: Warn if extension point not registered 2018-03-24 22:02:29 +02:00
Juraj Fiala 4dfbea370c window: Minor fixes to the about dialog text
- Remove redundant copyright
 - Short descriptions shouldn’t end with full stops
2018-03-24 16:45:39 +00:00
Ernestas Kulik 17ebc7e403 data/meson.build: Compile gschemas during the build
In particular this can be useful when running tests from the build
directory in Builder.
2018-03-24 18:22:14 +02:00
Dušan Kazik ddcbe2a4f6 Update Slovak translation
(cherry picked from commit 267e64e76a)
2018-03-24 10:22:51 +00:00
Rahul Verma 52141cbba5 files-view: Remove unused API
nautilus_files_view_handle_scroll_event() is being called only once by nautilus_files_view_scroll_event() in the whole nautilus code base.

So remove it's declaration from it's header file, and move it's code to nautilus_files_view_scroll_event() directly.

Note - nautilus_files_view_handle_scroll_event() used to be used by compact view, which was removed in commit  241e462024
2018-03-24 13:55:14 +05:30
António Fernandes 8580b6daca file: Ignore Desktop for default Downloads sorting
We no longer have a desktop view with manually sorted items, so there
is no need to guard it against the case of both XDG_DESKTOP_DIR and
XDG_DOWNLOAD_DIR being set to the same directory.
2018-03-23 23:33:26 +00:00
António Fernandes b98fa17dfc file-utilities: Remove leftovers of desktop removal
Since commit 74dd9c9f72, this function
is undefined and this constant is unused.

Let's drop them.
2018-03-23 23:33:08 +00:00
António Fernandes 52d80d291a file-utils: Remove obsolete API for desktop dir
None of this is currently used.

Also, since the desktop_is_home_dir setting was removed in
commit 5ab3050f22, the desktop dir is
always XDG_DESKTOP_DIR. Thanks to that, we can simply use this instead:

nautilus_file_is_user_special_directory (file,
                                         G_USER_DIRECTORY_DESKTOP)

Therefore, remove the obsolete API.
2018-03-23 23:32:54 +00:00
António Fernandes 2787773c62 files-view: Allow trashing/deleting Desktop dir
We disable trashing/deleting the Desktop directory. But we allow
trashing/deleting other XDG user dirs (Documents, Music,...).

If a person doesn't want to use an "icons on desktop" implementation,
this person may want to remove this folder from their Home directory.

To allow it, don't disable trashing/deleting the Desktop directory.
2018-03-23 22:00:37 +00:00
Rafael Fontenelle dee6bc2596 Update Brazilian Portuguese translation
(cherry picked from commit 6f7de3223d)
2018-03-23 19:15:46 +00:00
Alexandre Franke d2cee6b2a6 Make strings consistent 2018-03-23 18:11:18 +00:00
Khaled Hosny 42fe131d20 canvas-item: Let Pango detect base direction
When using right-to-left (RTL) UI, files that start with neutral or weak
directional characters (like punctuation and numbers) while the rest of
file name is strong left-to-right (LTR) characters (like Latin
characters), the Pango layout base direction should be LTR for proper
display of such file names, and Pango can automatically detect that, but
canvas item disables automatic detection of base direction and forcing
the use of UI direction which leads to broken display if the UI locale
is RTL. The reverse can also happen for RTL file names in LTR UI.

The pango_layout_set_auto_dir (layout, FALSE) was introduced in commit
ade1f99c97 to fix “text drawing in RTL mode in text beside icons”, but
text besides icons is long gone AFAICT.
2018-03-23 18:48:10 +02:00
Furkan Tokaç 774fb822bc Update Turkish translation
(cherry picked from commit db87a933c3)
2018-03-23 07:39:27 +00:00
Jordan Petridis c6c9f9fa12
gitlabci: do not try installing Xvfb anymore.
As it's quite common way to be needed to run display
tests, it's now included in the base gnome-nightly
docker image.
2018-03-22 05:17:47 +02:00
Jordan Petridis 215e0f6291
gitlabci: use xvfb and enable all the tests 2018-03-22 05:12:54 +02:00
António Fernandes b5eb9b1480 Merge AlexFazakas's list view selection fixes
list-view: Allow right clicking expanders
list-view: Make list view selection consistent

See merge request GNOME/nautilus!131
2018-03-21 22:06:52 +00:00
Alexandru Fazakas 315d14585b list-view: Make list view selection consistent
Selecting rows using CTRL/SHIFT with left click is different
to right click as GtkTreeView's default code does not support
SHIFT+CTRL selection.

We want consistency between the two behaviours.

We fixed this by replicating the left click behaviour in the
right click case. The GTK dependency is also bumped in order
to use GtkTreePath autocleanup.
2018-03-21 23:57:56 +02:00
Alexandru Fazakas e3c01df382 list-view: Allow right clicking expanders
Right now, right clicking an expander opens the context menu
without changing the selection.

This resulted in the context menu affecting other items than the
clicked one, which is counterintuitive and should not happen.

We fix this by isolating the case where an expander was clicked
and we change the selection to the clicked row.

Closes https://gitlab.gnone.org/GNOME/nautilus/issues/286
2018-03-21 23:56:22 +02:00