Commit graph

20878 commits

Author SHA1 Message Date
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
Carlos Soriano
9c9eba547b Merge branch 'error_out' into 'master'
general: Error out if unhandled protocol is entered from CLI or pathbar

Closes #237

See merge request GNOME/nautilus!151
2018-03-21 15:16:07 +00:00
Carlos Soriano
7c4e26cde8 Merge branch 'create-config-dir-with-parents' into 'master'
file-utilities: Create parents along with config dir

See merge request GNOME/nautilus!159
2018-03-21 12:48:47 +00:00
Ernestas Kulik
ad927dd621 file-utilities: Create parents along with config dir
While under normal circumstances one could expect XDG_CONFIG_HOME to
exist, in rare cases (e.g. test environments), it might not.
2018-03-21 13:13:15 +02:00
Rahul Verma
c48d2de672 nautilus-application: Error out if "x-nautilus-search" is entered from CLI
The problem is that upon entering "x-nautilus-search" in cli a crash is observed.

The solution is to explicitly check for "x-nautilus-search" in cli and error out before even opening the uri.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/237
2018-03-21 15:05:14 +05:30
Fran Dieguez
f88a61c6b6 Update Galician translation
(cherry picked from commit 5a6a923d03)
2018-03-21 08:45:08 +00:00
Ernestas Kulik
3e3bd830b5 eel: string: fix middle truncation test cases
f42979f0b0 changed the ellipsis to a
unicode one, which is one character in length, in turn changing the
expected output.

For cases where the truncation length is zero, the expected output is
changed to NULL, as 536505728e added an
assertion.
2018-03-21 10:05:45 +02:00
Ernestas Kulik
a01652064a CI: simplify running build commands
Thanks to Christian for pointing out `flatpak build` use in Builder.
2018-03-21 07:53:47 +02:00
gogo
24e2adb534 Update Croatian translation
(cherry picked from commit e0cfcef44f)
2018-03-20 21:57:10 +00:00
Balázs Meskó
4a1d15900c Update Hungarian translation
(cherry picked from commit 7e17250ef9)
2018-03-20 18:55:48 +00:00
Christian Kirbach
d0938ba836 Update German translation
(cherry picked from commit abbb6776a9)
2018-03-20 17:48:14 +00:00
Cheng-Chia Tseng
8feba496a1 Update Chinese (Taiwan) translation
(cherry picked from commit 4f88733ed2)
2018-03-20 16:17:00 +00:00
Cheng-Chia Tseng
08bd133fb0 Update Chinese (Taiwan) translation
(cherry picked from commit 2713ad8261)
2018-03-20 15:57:24 +00:00
António Fernandes
208fef6b59 Merge branch 'list-view-row-expanded-typo' into 'master'
list-view: Fix "row expanded" typo

See merge request GNOME/nautilus!158
2018-03-20 14:29:07 +00:00
Alexandru Fazakas
99fa9e298b list-view: Fix "row expanded" typo
The text was supposed to be "row expanded", but was missing
an 'n' and 'uri' should be capitalized.
2018-03-20 15:21:57 +02:00
Milo Casagrande
70e3e34f36 Update Italian translation
(cherry picked from commit fce335f216)
2018-03-20 08:56:23 +00:00
Carlos Soriano
2d2bd8ea98 CI: Fedora Rawhide: Fix before_script 2018-03-19 23:06:54 +00:00
Carlos Soriano
bc0aaf5191 CI: Fedora Rawhide: Remove coverage for now
We want that as part of the Flatpak build.
2018-03-19 21:56:41 +00:00
Aurimas Černius
a338e32fdb Updated Lithuanian translation 2018-03-19 22:45:15 +02:00
Carlos Soriano
a5527754b1 Merge branch 'issue-templates' into 'master'
Add issue templates

See merge request GNOME/nautilus!135
2018-03-19 19:46:52 +00:00
Carlos Soriano
b1ce8a0843 Issues template: Improve wording and provide only unstable Flatpak
Until we have a repo with the stable one.
2018-03-19 20:17:05 +01:00