Commit graph

20923 commits

Author SHA1 Message Date
George Mocanu ad85e52410 ui-utilities: Fix identation 2018-04-23 22:12:24 +02:00
George Mocanu 01e20b9d29 Replace eel_show_warning_dialog()
We need to move away from using eel and port most functionalities
inside nautilus.

Replaced the usage of eel_show_warning_dialog() with the show_dialog()
alternative.

https://gitlab.gnome.org/GNOME/nautilus/issues/331
2018-04-23 22:12:13 +02:00
George Mocanu c1bb594d26 Change show_error_dialog() to show_dialog()
Changed show_error_dialog() to show_dialog() so that multiple dialog
types can be used.
2018-04-23 22:12:08 +02:00
Carlos Soriano 0251434382 Revert "Eliminate accessible name-changed event flood during initial load"
This reverts commit f0c26cb175
2018-04-23 20:05:15 +00:00
Carlos Soriano dab23f2e77 Revert "Merge remote-tracking branch 'upstream/master'"
This reverts commit 1f4bd55d1b
2018-04-23 20:03:55 +00:00
Matej Urbančič c526cf6322 Updated Slovenian translation 2018-04-23 22:03:19 +02:00
Joanmarie Diggs f0c26cb175 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 14:30:53 -04:00
Joanmarie Diggs 1f4bd55d1b Merge remote-tracking branch 'upstream/master' 2018-04-23 13:03:21 -04:00
Joanmarie Diggs a4c27ad2b3 Eliminate accessible children-changed event flood during initial load
Accessible children-changed events should not be emitted during the
initial load of the icon container. They should only be emitted when
a user-triggered action (creation of file, copying an item) causes
an item to be added.

User-triggered actions result in nautilus_canvas_container_layout_now
being called, so set a flag there so that we can distinguish the two
types of additions in the accessible icon-added callback.
2018-04-23 16:30:33 +00:00
Joanmarie Diggs 77bc49d1dc Eliminate accessible children-changed event flood during initial load
Accessible children-changed events should not be emitted during the
initial load of the icon container. They should only be emitted when
a user-triggered action (creation of file, copying an item) causes
an item to be added.

User-triggered actions result in nautilus_canvas_container_layout_now
being called, so set a flag there so that we can distinguish the two
types of additions in the accessible icon-added callback.
2018-04-23 12:02:38 -04:00
George Mocanu b7da069754 ui-utilities: Fix identation 2018-04-23 14:22:20 +00:00
George Mocanu 50082ee2a3 Replace eel_show_warning_dialog()
We need to move away from using eel and port most functionalities
inside nautilus.

Replaced the usage of eel_show_warning_dialog() with the show_dialog()
alternative.

https://gitlab.gnome.org/GNOME/nautilus/issues/331
2018-04-23 14:22:20 +00:00
George Mocanu 2ab5c897e4 Change show_error_dialog() to show_dialog()
Changed show_error_dialog() to show_dialog() so that multiple dialog
types can be used.
2018-04-23 14:22:20 +00:00
Daniel Mustieles 15351e9bcf Updated Spanish translation 2018-04-23 15:56:13 +02:00
Marco Trevisan (Treviño) d1547407ca window-slot: Clear pending_selection after freeing it
This might not be the case when handling archive files, in fact we were
freeing the list and assigning it to a new value for non-archive files,
but in case of archives the list was just freed and the invalid pointer
kept around, potentially causing a later crash.
2018-04-20 12:08:44 -05:00
Fabio Tomat 89e478b72f Update Friulian translation 2018-04-17 18:28:34 +00:00
gogo 3d954a17c3 Update Croatian translation 2018-04-16 11:40:52 +00:00
Ernestas Kulik 7ca2197ae3 notebook: Fix tab lookup by coordinates
The current code only checks one coordinate, depending on the tab
orientation.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/342
2018-04-14 16:18:21 +03:00
Ernestas Kulik babfed249c gtk-code-generator.sh: Fetch sources from GitLab 2018-04-14 15:46:56 +03:00
Ernestas Kulik e759e82386 pathbar: Fix crash when accessing drive root
The path bar button data is not properly set up when type button type is
“root”.
2018-04-14 15:45:46 +03:00
Ernestas Kulik 263ed29188 pathbar: Remove debug print 2018-04-14 15:45:19 +03:00
Ernestas Kulik ade0fd0036 pathbar: Fix style of switch case 2018-04-14 15:44:52 +03:00
Ernestas Kulik 5633b13f92 build: Fix icon renaming
Currently, when looping over icon sizes, each icon is copied to
$MESON_BUILD_ROOT/@appid@.png, meaning that the file is overwritten on
every iteration. This commit fixes that by copying to a subdirectory
under the build root and installing from there.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/364
2018-04-14 12:34:38 +03:00
Carlos Soriano b7b5b5e2a7 Revert "window: Hide starred items in the sidebar if not items present"
This reverts commit d08d4c8fe1
2018-04-09 08:51:38 +00:00
Jordi Mas bc87bd9c40 Update Catalan translation 2018-04-08 18:50:38 +02:00
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