Commit graph

20014 commits

Author SHA1 Message Date
Alexandru Pandelea 6e16bc32e8 add "restore tab" action
Adds option to reopen closed tabs with Ctrl+Shift+T.

In order to do so, keep a list with data needed to restore closed
tabs. So, this list keeps the location bookmark, the view id before
search, which is needed in case the closed tab was a search and
the back/forward history.

https://bugzilla.gnome.org/show_bug.cgi?id=561136
2017-05-31 15:58:52 +03:00
Baurzhan Muftakhidinov e4e9eb83d5 Update Kazakh translation 2017-05-30 17:02:51 +00:00
Ernestas Kulik 80ebc12c49 file-operations: deduplicate code
Some duplicate code can be removed by refactoring
mark_desktop_file_executable().

https://bugzilla.gnome.org/show_bug.cgi?id=782658
2017-05-30 11:17:56 +03:00
Fabio Tomat f8868596c3 Update Friulian translation 2017-05-29 10:21:28 +00:00
Марко Костић ce146e7552 Update Serbian translation
(cherry picked from commit 6830977fb6)
2017-05-27 22:44:51 +00:00
Fabio Tomat 6e29fe79aa Update Friulian translation 2017-05-25 12:20:19 +00:00
Kukuh Syafaat f796f4a137 Update Indonesian translation 2017-05-18 12:55:18 +00:00
Alexandru Pandelea fd05b6f064 search-engine-tracker: don't use fts:match on empty search entry
If the search entry is empty and filtering for date or mime type is
added, then the sparql query always returns nothing because of
fts:match '""*'

To get the expected search results don't use fts:match when the
search text is empty.

https://bugzilla.gnome.org/show_bug.cgi?id=782596
2017-05-16 23:58:49 +03:00
Ernestas Kulik 8a14b5329c file-operations: duplicate: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:24 +03:00
Ernestas Kulik 7b7f0a1b63 file-operations: set_permissions_recursive: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:24 +03:00
Ernestas Kulik f673ae8ab2 file-operations: empty_trash: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:24 +03:00
Ernestas Kulik 0d207faa30 file-operations: mark_desktop_file_executable: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:24 +03:00
Ernestas Kulik b1d57bc5a9 file-operations: delete: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:24 +03:00
Ernestas Kulik 8e8010de41 file-operations: copy: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:23 +03:00
Ernestas Kulik 48fd326ee8 file-operations: move: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:23 +03:00
Ernestas Kulik 0406451c70 file-operations: link: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:06:16 +03:00
Ernestas Kulik caef877dee file-operations: create: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
2017-05-15 15:04:38 +03:00
Mario Blättermann 9e59b21fed Update German translation 2017-05-14 18:47:56 +00:00
Ernestas Kulik fb8b8ca54e views: handle keyboard activation in files-view
Each view handles keyboard activation on its own by listening to
key-press-event, yet there are actions in files-view that could handle
it. This commit makes it so, additionally swapping the accelerators for
opening in new tab and window to make things more consistent throughout
the application (and others, too, e.g. Firefox).

https://bugzilla.gnome.org/show_bug.cgi?id=782600
2017-05-14 12:21:12 +03:00
Ernestas Kulik 1e898de966 mime-actions: check for valid error before dereferencing
After launching a URI, the code checks if the operation has been
canceled, but does not check if the error pointer is valid.

https://bugzilla.gnome.org/show_bug.cgi?id=781132
2017-05-13 23:02:38 +03:00
Piotr Drąg 8480203d1a batch-rename-dialog: fix grammar in translatable strings
https://bugzilla.gnome.org/show_bug.cgi?id=782601
2017-05-13 19:47:09 +02:00
Piotr Drąg 5713949603 batch-rename-dialog: mark strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=782601
2017-05-13 19:40:58 +02:00
Diana Grecu 0e21d1877e batch-rename: show error on empty name
When the destination name is empty, the "Rename" button goes
insensitive without explaining the user why it happened.

To explain what happened show a descriptive message to inform
the user.

https://bugzilla.gnome.org/show_bug.cgi?id=772435
2017-05-13 19:18:25 +03:00
Ernestas Kulik f5206a6daf mime-actions: launch default uri handlers when activating files
Currently, Nautilus tries to find the default applications for files
itself, which does not work well in a sandbox. This commit makes
Nautilus blindly launch the default applications, which makes use of the
documents portal indirectly.

https://bugzilla.gnome.org/show_bug.cgi?id=781132
2017-05-13 19:16:01 +03:00
Ernestas Kulik a4931f4a66 program-choosing: reindent header
https://bugzilla.gnome.org/show_bug.cgi?id=781132
2017-05-13 19:16:01 +03:00
Piotr Drąg b232004a1a Fix typos in Portuguese translation
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773687
2017-05-13 15:15:31 +02:00
Kukuh Syafaat 09354730f6 Update Indonesian translation 2017-05-13 00:43:28 +00:00
Carlos Soriano 7148aca89a view-icon-controller: Fix double-free
We weren't taking a ref, but we were unrefing afterwards.
2017-05-13 00:01:26 +02:00
Mario Blättermann e9d63bf01b Update German translation 2017-05-12 14:51:56 +00:00
Carlos Soriano 2cb1f8b099 preferences-window.ui: Use header bar
So it's consistent with all the other dialogs.
Also use a GtkDialog instead of a window.
2017-05-11 14:47:37 +02:00
Waqar Ahmed ff7e8f7625 window: port to G_DECLARE_*_TYPE decl
This patch ports the manual definition of macros to G_Declare type
declaration, which makes the code cleaner and easier to read and
understand.

https://bugzilla.gnome.org/show_bug.cgi?id=782204
2017-05-06 14:42:02 +03:00
Mohammed Sadiq ec52282f15 toolbar: Don't leak previous allocations
When undo_active/redo_active is FALSE, undo_label/redo_label
was getting overwritten irrespective of whether they were
NULL or not.

Let the label values be freed incase they are updated.

https://bugzilla.gnome.org/show_bug.cgi?id=782083
2017-05-05 17:14:56 +03:00
Jeremy Bicha 1ca554b872 canvas-item: Don't wrap after . immediately followed by numbers
Nautilus allowed line wrapping for filenames after a . or _
The code made an exception for version numbers, but it
was too rigid and broke things like Ubuntu's 12.04 version
numbering. This relaxes the exception so that the line isn't
wrapped for a . or _ immediately followed by any numbers.

https://launchpad.net/bugs/942539

https://bugzilla.gnome.org/show_bug.cgi?id=781875
2017-05-04 04:37:34 -04:00
Carlos Soriano bd9ae8d0a6 flatpak: Add stable release
So we can put it in FlatHub

https://bugzilla.gnome.org/show_bug.cgi?id=782125
2017-05-03 20:26:27 +02:00
Fabio Tomat 7550472d80 Update Friulian translation 2017-05-03 05:36:53 +00:00
Alexandru Pandelea c68efe281b window-slot: fix activate on search entry
The issue is that when pressing enter in search while the search entry
has the focus, right after the callback to activate the selection is
called, Nautilus also tries to activate the location corresponding to
the base of the search, as the view is still searching.

This occurs because in the activated signal the search is set as not
visible manually, which will make Nautilus check immediatly if it should
go back to the base of the search location, without waiting for the view
to update.

To fix this, don't set the search as not visible in the activated callback,
as when the search-mode-enabled property changes, if necessarry, the
cancel signal will be emitted which will set the search as not visible,
which will happen only after the view is updated. This is the behavior for
activating the selection in other ways, so activation with focus on the
entry should behave the same.

https://bugzilla.gnome.org/show_bug.cgi?id=764981
2017-05-02 21:35:45 +03:00
Evgeny Shulgin 941b3fe16e file-conflict-dialog: confirm filename change with return key
The problem is that when we have a file conflict dialog, we can write
a new name for the file in GtkEntry in the expander "Select a new
name for the destination", but after typing in a new file name,
pressing <ENTER> does nothing, but should close this dialog and
confirm the renaming.

To fix this we enable "activates-default" flag for the GtkEntry.

https://bugzilla.gnome.org/show_bug.cgi?id=780449
2017-05-02 21:20:34 +03:00
Carlos Soriano 53928d7f46 postinstall: Use python
Instead of shell scripts, much better to maintain.
Also, the new python script has better handling of non existing paths.
2017-05-02 19:50:54 +02:00
Evgeny Shulgin e9f56f411c list-view: Replaced deprecated gtk_menu_popup_for_device()
When using Wayland the menu for selecting the visible columns (right
clicking on the column headers in the list view) can be misplaced when
using two monitors because src/nautilus-list-view.c still uses the
deprecated gtk_menu_popup_for_device() instead of the new
gtk_menu_popup_at_pointer().

https://bugzilla.gnome.org/show_bug.cgi?id=781073
2017-05-02 18:26:18 +03:00
Mohammed Sadiq cfee568ffb files-view: Fix memory leak
nautilus_file_get_mime_type() returns a newly
allocated string, which should be freed when no longer
required.

using g_autofree() automatically frees the string fixing the leak

https://bugzilla.gnome.org/show_bug.cgi?id=782070
2017-05-02 18:05:08 +03:00
gogo 663bd62ee5 Update Croatian translation 2017-04-29 22:45:39 +00:00
Jeremy Bicha 9a0c5cdf12 autostart: Set NoDisplay=true
This hides the autostart from Ubuntu's Startup Applications
app since we don't want users to easily disable this without
understanding why it's there.

https://bugzilla.gnome.org/show_bug.cgi?id=781874
2017-04-28 08:16:08 -04:00
Ernestas Kulik 55d17ec481 make_release.sh: fix post-Autotools breakage
The script broke after killing off Autotools support, since the libgd
submodule was moved to /subprojects/libgd. Additionally, this commit
makes the script exit on error and makes xz print verbose output.

https://bugzilla.gnome.org/show_bug.cgi?id=781892
2017-04-28 14:09:16 +03:00
Carlos Soriano ed07b5de52 release: Prepare for 3.25.1 2017-04-28 11:46:55 +02:00
Piotr Drąg d32d1f506a Update po/Makevars
This is not a GNU package and the Free Software Foundation has no copyright
over it. Also adds MSGID_BUGS_ADDRESS.
2017-04-27 17:34:41 +02:00
Kukuh Syafaat 1d103c4e42 Update Indonesian translation 2017-04-26 02:08:13 +00:00
Ondrej Holy c6f6f07f72 file: Set activation URI for certain files only
Drag&drop of native Google Drive files doesn't work correctly, because
target path is used, which causes requests for HTTP backend and fails.
The activation URI is used for drag&drop since commit 1d1488c. Recently,
this behavior has been disabled for trash locations by commit bc22321.
This behavior seems to make sense for recent locations in order to allow
dropping in applications, which are not based on GLib/GIO. It also makes
sense for afpbrowse, dnssd, network, and smbbrowse backends when mounting
and bookmarking. Let's set the activation URI only for the mentioned.
This change should not affect nautilus links (i.e. desktop files and
symlinks), which are handled by different codepath, it should affect
only certain GVfs backends.

https://bugzilla.gnome.org/show_bug.cgi?id=768168
2017-04-25 12:30:47 +02:00
Ernestas Kulik 9948131521 meson: delegate submodule initialization to Meson
As of 0.40.0, Meson has the ability to initialize subprojects that are
git submodules. This removes the need for a separate script to achieve
that.

https://bugzilla.gnome.org/show_bug.cgi?id=781653
2017-04-25 11:22:41 +03:00
Fabio Tomat 0e09283ba0 Update Friulian translation 2017-04-23 15:41:14 +00:00
Fabio Tomat 27cff4ecf3 Update Friulian translation 2017-04-23 14:17:21 +00:00