Commit graph

19890 commits

Author SHA1 Message Date
Charles Monzat
523ebbee19 Update French translation 2017-02-28 21:51:53 +00:00
Anders Jonsson
7dc6c82f83 Update Swedish translation 2017-02-28 19:51:55 +00:00
Jiri Grönroos
6efa5a5743 Update Finnish translation 2017-02-28 18:38:52 +00:00
Sveinn í Felli
439e144077 Update Icelandic translation 2017-02-28 14:34:31 +00:00
Carlos Soriano
4b2f6d5dcf canvas-container: fix warning of possible non handled value in switch
We added a new enum value, but we didn't handled it on places where
we knew it couldn't be reached. However that spits out a warning with
gcc even if we handled it after the switch.

Fix that handling a "default" and returning a default value.
2017-02-27 16:10:33 +01:00
Carlos Soriano
12826378e1 meson: ignore deprecations warnings
We know we have deprecations functions, and they require a major work
as porting to gtk4.
That's truly a different task to what we are doing every day, and the
multiple warnings obscure all real warnings to the task that is
relevant at that point.

This is making contributors skip the warnings, rather than actually look
at them.

For that, ignore deprecation warnings for now until someone wants to
work in the gtk4 port, and we also assume you read the documentation
when introducing new code in order to avoid deprecations.
2017-02-27 16:06:11 +01:00
Ernestas Kulik
ec92b8ab60 general: remove empty view
Since testing is planned to be done with actual views and no one has
built Nautilus with the empty view enabled recently, it is safe to say
that it should go. This commit removes the empty view.

https://bugzilla.gnome.org/show_bug.cgi?id=779255
2017-02-27 16:47:51 +02:00
Mohammed Sadiq
753e9d812c autogen.sh: don't run aclocal
autoreconf takes care of running aclocal and other commands
in the right order.

Also, removing aclocal saves around 40 seconds (Thanks to
Ernestas Kulik for testing) when running autogen.sh

https://bugzilla.gnome.org/show_bug.cgi?id=779248
2017-02-27 15:17:42 +02:00
Ernestas Kulik
2475e9a1f7 meson: don’t look for update-mime-database
Since Nautilus no longer install a mime type
(5951fadbef), updating the mime database
is not something that should be done anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=779250
2017-02-27 15:11:07 +02:00
Ernestas Kulik
37beae836d files-view: remove unused function prototype
_update_menus () is no longer used.

https://bugzilla.gnome.org/show_bug.cgi?id=779256
2017-02-27 15:09:35 +02:00
Ernestas Kulik
de521ddf8b window: remove max forced window size calculation
Currently, the default size for window is calculated by taking the
minimum value between the screen size and the hardcoded default. As
the smallest recommended screen size for GNOME today is 1024x600 and the
code has been added in 2000, it is likely no longer relevant. This
commit simply makes the code use the hardcoded values within the
recommended range as the default window size.

https://bugzilla.gnome.org/show_bug.cgi?id=779082
2017-02-27 14:17:50 +02:00
Daniel Mustieles
76a1a24a61 Update Spanish translation 2017-02-27 08:45:06 +00:00
Daniel Boles
78a1562861 application: Load Adwaita.css for Adwaita-dark
"Adwaita-dark" is supplied by gnome-themes-standard and has a distinct
name to theme GTK+ 2. For GTK+ 3, this theme just imports gtk-contained-
dark.css from the library, so it's _as if_ Adwaita was the system theme.

But Nautilus only applied its Adwaita-specific CSS if the system theme
name was exactly "Adwaita". So using "Adwaita-dark" meant we got Adwaita
but without Nautilus' additions to it, even though they are applicable.

Fix this by also loading Adwaita.css if the theme name is "Adwaita-dark"

https://bugzilla.gnome.org/show_bug.cgi?id=779266
2017-02-26 22:13:20 +00:00
Piotr Drąg
790465d5df Update Polish translation 2017-02-26 21:07:23 +01:00
Piotr Drąg
083deb5993 file-operations: fix extracting the translator comments 2017-02-26 21:03:41 +01:00
Piotr Drąg
60001d8908 file-operations: fix variables in translator comments 2017-02-26 20:58:56 +01:00
Fabio Tomat
abf0e046e3 Update Friulian translation 2017-02-26 19:00:08 +00:00
Jordi Mas
68aa6ca105 Update Catalan translation 2017-02-26 12:33:05 +01:00
Мирослав Николић
82d92a6e7d Updated Serbian translation 2017-02-26 10:28:12 +01:00
Fran Dieguez
b07ee9bcb9 Updated Galician translations 2017-02-26 02:14:20 +01:00
Christian Kirbach
c474366501 Update German translation 2017-02-25 20:09:34 +00:00
Aurimas Černius
532c476712 Updated Lithuanian translation 2017-02-25 19:11:24 +02:00
Felipe Borges
870179bb89 file-operations: do not free string literal
The "status" string was using the g_autofree macro to ensure its
automatic cleanup, but its attributions were all string literals.

We should live by the mantra "WE SHALL NEVER FREE MEMORY THAT WE
DIDN'T MALLOC(ED)".

https://bugzilla.gnome.org/show_bug.cgi?id=779188
2017-02-25 12:29:52 +01:00
Rafael Fontenelle
4afc617d42 Update Brazilian Portuguese translation 2017-02-24 20:09:54 +00:00
Jordi Mas
f8fac12704 Update Catalan translation 2017-02-24 19:51:44 +01:00
Jan Tojnar
5488240840 tests: Fix directory extensions points
In 7840b533e2, `nautilus-directory-provider` extension point was added
to the code paths used by the tests. When glib is asked for extensions,
it assumes the extension point is registered so it segfaults.

This patch registers the extension point before the tests are run.

https://bugzilla.gnome.org/show_bug.cgi?id=779178
2017-02-24 14:30:21 +01:00
Eduard Čuba
310c77554f destructive-action: set style for permanent delete button
Delete button in confirmation dialog of nautilus-file-operations
does not follow GNOME Human Interface Guidelines.
https://developer.gnome.org/hig/stable/buttons.html.en

To fix this use 'destructive-action' style class
for this button. Class changes button color to red,
preventing user from permanently deleting his files
by accident.

https://bugzilla.gnome.org/show_bug.cgi?id=771356
2017-02-24 14:28:13 +01:00
Jan Tojnar
5f0bf7c011 README: update links
The links were no longer current – they redirected to https version,
a new version of wiki page, or did not redirect to new version at all.

https://bugzilla.gnome.org/show_bug.cgi?id=778414
2017-02-24 11:11:20 +02:00
Chao-Hsiung Liao
57b276433c Update Chinese (Taiwan) translation 2017-02-24 00:43:55 +00:00
Ernestas Kulik
ed5652c89a general: add support for Meson
Since it’s 2017 already, Nautilus should use a build system that doesn’t
take longer to set up the build than it takes to actually build. An
observed build time using Ninja of roughly one-fifth of what it took
Autotools is more than reason enough to add support for Meson. Along
with that, this commit adds a convenience script to generate a tarball
for releases, since we use libgd as a submodule and Meson does not
handle source distributions.

https://bugzilla.gnome.org/show_bug.cgi?id=778167
2017-02-24 00:24:27 +02:00
Ernestas Kulik
728300331d general: drop git.mk
This commit removes git.mk and adds hand-written gitignore files. That
is needed to ignore build/, which is the directory of choice for Meson
builds.

https://bugzilla.gnome.org/show_bug.cgi?id=778167
2017-02-24 00:24:27 +02:00
Carlos Soriano
9edc580ca0 libgd: update to latest code 2017-02-23 18:49:38 +01:00
Carlos Soriano
e973687c49 configure: bump glib version
For glib commit 006a7d082bc3a that adds the recency support
2017-02-23 18:49:38 +01:00
Daniel Korostil
0b5721bf75 Updated Ukrainian translation 2017-02-23 18:12:12 +02:00
Daniel Korostil
d8fcf8f644 Updated Ukrainian translation 2017-02-23 18:12:12 +02:00
Baurzhan Muftakhidinov
50b0136680 Update Kazakh translation 2017-02-23 16:05:21 +00:00
Carlos Soriano
f82c109361 file-operations: fix typo
https://bugzilla.gnome.org/show_bug.cgi?id=779139
2017-02-23 16:40:11 +01:00
Ernestas Kulik
843b356a84 general: use gtk_show_uri_on_window ()
gtk_show_uri () has been deprecated. This commit makes the code make use
of the recommended API instead.

https://bugzilla.gnome.org/show_bug.cgi?id=779083
2017-02-23 15:23:05 +02:00
Ernestas Kulik
2b6ca358c5 properties-window: use gdk_pixbuf_scale_simple ()
gnome_desktop_thumbnail_scale_down_pixbuf () has been deprecated in
favor of gdk_pixbuf_scale_simple (). This commit replaces the call to
the deprecated function.

https://bugzilla.gnome.org/show_bug.cgi?id=779084
2017-02-23 15:22:58 +02:00
Kevin Lopez
d9b152f937 image-properties-page: port away from manual decls
This patch reduces the number of macros used to define the type,
by means of the macro G_DECLARE*, and improves the readability of code.

https://bugzilla.gnome.org/show_bug.cgi?id=778138
2017-02-23 15:21:31 +02:00
Kartikeya Sharma
cbfcfe24c6 file-operations: use standard print functions
We were using a print function with custom handlers.

Not only this function is hard to understand and follow, but is also non
standard which makes it problematic for translation (where everything is
check using c standards to avoid crashing the application if the translator
makes some unsuported change).

This patch removes every use case of f() function and uses g_strdup_printf
and g_strdup in its place and uses custom functions directly to convert
required parameters into gchar* types.

https://bugzilla.gnome.org/show_bug.cgi?id=775091
2017-02-23 11:50:04 +01:00
Kartikeya Sharma
1182b2c3a3 file-operations: Rename and change the return type of a function
The function format_time does not clearly tell anything about
the fact that it is supposed to return something. And also it's
return type is char *. So, to make it consistent it's return
type is changed to gchar *.

This patch renames format_time to get_formatted_time.

https://bugzilla.gnome.org/show_bug.cgi?id=775091
2017-02-23 11:49:49 +01:00
Alexandru Pandelea
569f5dbfee canvas-container: fix auto_layout desktop crash
When the metadata of the desktop needs to be recalculated or it's
missing, we need to reposition the icons. They have what we call a
"lazy position". In order to place them on the desktop we either
position them by it's saved position if possible, and if not, moving
them as close as possible without overlaping, or by what we call
"auto layout", which is basically a perfect grid similar to a regular
nautilus window. It's clear from this logic that we do either one way
to place them or the other, and both at the same time doesn't make
sense. For that we assert we just apply one of this placements
algorythms. However, we were hitting this assertion if desktop-metadata
was missing (so they have a lazy position) since we need to reorder the
icons using the auto layout algorthm but the code was also trying to do
the "saved position" algorythm.

This issue is introduced by a commit intended to avoid overlapping icons,
with id: 40c79aec2d. In the initial
implementation of "lazy position" support, if "auto layout" was chosen,
the icons were repositioned only by the "auto layout" algorithm.

To fix this re-add the check that repositions icons only by the
"auto layout" algorithm if "auto layout" is chosen.

https://bugzilla.gnome.org/show_bug.cgi?id=747662
2017-02-22 23:34:30 +02:00
Ernestas Kulik
f6e557ac05 configure.ac: only check for tracker-sparql-1.0
In systems where Tracker is not installed, building Nautilus with it
enabled will check for 1.0, 0.18 and 0.16. Since older versions may not
be installable from distribution packages, we should only care about
1.0.

https://bugzilla.gnome.org/show_bug.cgi?id=779037
2017-02-22 08:19:24 +02:00
Claude Paroz
77cd0823d2 Update French translation 2017-02-21 22:44:54 +00:00
Milo Casagrande
d4aa0a3a92 Update Italian translation 2017-02-21 17:06:33 +00:00
Baurzhan Muftakhidinov
2258c0bef9 Update Kazakh translation 2017-02-21 08:13:36 +00:00
Carlos Soriano
048c6ef549 general: add recency sort for recent files
The sort order is based on atime currently, which is problematic,
because some daemons (i.e. dropbox) randomly accesses files and
changes atime...
Instead we should just take into account when the user accessed.

Recently glib and gvfs added a new attribute in the recent namespaces
G_FILE_ATTRIBUTE_RECENT_MODIFIED or "recent::modified" that we can use
to sort correctly the files in Recent.

This patch adds this attribute and corresponding columns etc. to the
file data and views and makes it the default sorting when in Recent.

https://bugzilla.gnome.org/show_bug.cgi?id=777507
2017-02-20 10:56:54 +01:00
Piotr Drąg
cc6c855c7a Update Polish translation 2017-02-19 21:19:21 +01:00
Kjartan Maraas
88046120a6 Updated Norwegian bokmål translation. 2017-02-19 14:40:01 +01:00