Commit graph

21072 commits

Author SHA1 Message Date
Will Thompson 4401658708 flatpak: add space after (Development) prefix
Without this, the app name comes out as "(Development)Files". No
functional issue, just ugly.
2018-07-29 06:12:48 +00:00
Ernestas Kulik 40d7df88cb flatpak: Update GTK+ 4 manifest
This commit builds master Tracker with Meson and removes a redundant
finish argument.


(cherry picked from commit f42bca3852)
2018-07-28 06:18:21 +00:00
Alexander Mikhaylenko 7aae2ee1f1 pathbar: Change border-radius to 3px for Adwaita
Be consistent with buttons and entries and make transition from or to
search entry more seamless.
2018-07-27 16:52:18 +00:00
António Fernandes 4214f84c2b Revert "files-view: close menu when new folder prompt appears"
This reverts commit 0453216b8a.

Nowadays, the view menu doesn't have a new folder action so this
is not needed anymore.
2018-07-27 15:01:38 +00:00
António Fernandes ee75ea7717 files-view: Streamline properties actions paths
The view.properties action opens the current directory properties when
the selection is NULL, which we assume to be the case when opening the
background context menu.

Instead of relying on this assumption, make the background context menu
use the view.current-directory-properties action which is used by the
current location menu in the pathbar. Also, rename view.properties to
view.selection-properties and specialize it.
2018-07-27 15:01:38 +00:00
António Fernandes 5e8e63eff9 ui-utilities: Move menu pop up code to files-view
In the past, nautilus_pop_up_context_menu_at_pointer() was the common
path for popping up context menus from the view and pathbar.

However, different paths were introduced in
commit 29cf64bd76 and
commit 489d4d091e, which
share some code but couldn't use this API.

Now that the pathbar context menus are gone, this is actually
causing more code duplication while making it harder to read.

Instead, handle everything in files-view.c.
2018-07-27 15:01:37 +00:00
Tim Sabsch a6a7f0c15e Update German translation 2018-07-27 14:35:01 +00:00
Daniel Mustieles a4fe6c4606 Updated Spanish translation 2018-07-27 13:42:35 +02:00
António Fernandes 7b71dc3bda toolbar-switcher: Don't expand
It breaks proper centering in the header bar.

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/554
2018-07-26 22:25:48 +01:00
Carlos Soriano dde5d529d0 meson: Bump version 2018-07-26 21:23:12 +02:00
Carlos Soriano 91e7a68ff6 rename-file-popover: Fix Glade overriding margins
And setting can_focus false by default...
2018-07-26 21:20:43 +02:00
Carlos Soriano 8fadc54f67 release: Prepare for 3.29.90 2018-07-26 21:02:11 +02:00
António Fernandes 843943e5f8 pathbar: Add translator comments for new strings 2018-07-26 19:14:17 +01:00
Piotr Drąg 188b050ba8 new-folder-dialog-controller: Stop translating a dot 2018-07-26 19:37:17 +02:00
Piotr Drąg a2d7a03329 toolbar: Add missing mnemonics 2018-07-26 19:37:17 +02:00
Piotr Drąg 50451b05b2 preferences-window: Add missing mnemonic 2018-07-26 19:37:17 +02:00
Piotr Drąg e375d37383 preferences-window: Remove unneeded context and comment 2018-07-26 19:37:17 +02:00
Piotr Drąg 5efe9c2429 Update POTFILES.in 2018-07-26 19:34:54 +02:00
António Fernandes 9ccec443a6 pathbar: Show label for administrator root
Similar problem to the previous commit.

Ideally, we should simply call it "Computer", since it is the same
location. But we currently lack an effective visual clue that the
admin: backend is in use.

For that reason, label it "Administrator root" istead.
2018-07-26 17:26:25 +00:00
António Fernandes e9ddcea8b4 pathbar: Show label for filesystem root
When current location is "/", the pathbar is (icon)(slash)(arrow),
which looks bad because that's 3 symbols in sequence.

Also, the slash ("/") label duplicates the pathbar separator if
current location is a child.

Instead, call it "Computer", which is the label used in Other Locations

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/414
2018-07-26 17:26:25 +00:00
Carlos Soriano a4fa624abc general: Remove trash shortcut changed handling
It was introduced in 3.14, most probably everyone is in a newer version
already...

Time to clean up!
2018-07-26 19:25:15 +02:00
Carlos Soriano 1554177c70 folder-is-empty: Use Glade 2018-07-26 19:25:15 +02:00
Carlos Soriano 228d8da0b4 trash-is-empty: Use Glade 2018-07-26 19:25:15 +02:00
Carlos Soriano d69d7dc84a starred-is-empty: Use Glade 2018-07-26 19:25:15 +02:00
Carlos Soriano 153b756f3e rename-file-popover: Use Glade 2018-07-26 19:25:15 +02:00
Carlos Soriano 066d698a01 progress-info-widget: Use Glade and update to gtk 3.20 2018-07-26 19:25:15 +02:00
Carlos Soriano c2ebfdfbf1 no-search-result: Use Glade
And update to gtk 3.20
2018-07-26 19:25:15 +02:00
Carlos Soriano 480ba46830 preferences: Update to gtk 3.20 Glade generated file
So we get rid of deprecated properties
2018-07-26 19:25:15 +02:00
Carlos Soriano 0905bb6996 preferences: Fix General label context for translators
Not so obvious in Glade.
2018-07-26 19:25:15 +02:00
Carlos Soriano c1d51080e9 preferences: Remove experimental view settings
It went worse than I expected, it's a "break me please" setting, which
we are generally against.

It can still be enabled through dconf.
2018-07-26 19:25:15 +02:00
Marco Trevisan (Treviño) 6dfb26e3f6 search-engine-recent: use #pragma once for guarding 2018-07-26 19:00:50 +02:00
Marco Trevisan (Treviño) 0e655a6538 search-engine: move simple engine inclusion to .c file
No need to keep this in the header anymore
2018-07-26 17:38:35 +02:00
Marco Trevisan (Treviño) 69686372fd search-engine: add a recent-search-engine listing GtkRecentManager entries
Using GtkRecent items as search engine source in nautilus.
The main reason for this, is being able to get fast results on recently-used
files from the shell search provider.

This is disabled when recursive searches are disabled, as there's no need to go
through for recent files if no recursive (or indexed) search is enabled as the
simple engine will be already fast enough, while running this engine could be
just a waste.
2018-07-26 17:38:36 +02:00
Ernestas Kulik aa11347f5d flatpak: Tweak GTK+ 4 manifest
This pins versions of most dependencies, uses quotes for strings and
removes header cleanup from GTK+ module, because CI pipelines choke on
them being absent when ninja decides to rebuild everything when running
tests.


(cherry picked from commit a9f13fc91f7319b318e75a95a89918e9cadf94cf)
2018-07-26 14:25:45 +00:00
Alexandru Fazakas bb5e23e8a5 file-operations: Fix undo-duplicate critical 2018-07-26 14:22:02 +00:00
Carlos Soriano 703618c12c flatpak: Use meson for gexvi2
Life's much better now.
2018-07-26 15:40:23 +02:00
Carlos Soriano 56100acb9a toolbar: Adjust width requirements
So we allow half sized windows in 1360px screens. This is delicatily
adjusted with the default GNOME set up: Adwaita theme, only close
button as window controls and Cantarell as font.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/425
2018-07-26 11:59:53 +00:00
Carlos Soriano f2061e9409 preferences-window: Expose show sidebar setting
Since we want to replicate inside Nautilus what's in the app menu.
2018-07-26 11:59:53 +00:00
Ernestas Kulik 09b0932918 toolbar: Fix window slot handling
Calling _set_window_slot() in the window slot weak ref notification
callback isn’t a good idea, given that most of the stuff being cleaned
up there is done automagically, and results in runtime warnings or
potentially a segfault when removing a property binding.

This commit split nautilus_toolbar_set_window_slot(), so that property
bindings aren’t removed if called from the weak reference notification
function. Additionally, the same notification functions nulls out the
icon property binding, fixing the same thing happening in dispose().

Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/441
2018-07-26 10:03:39 +03:00
Ernestas Kulik cc4421d676 toolbar: Remove unused field
The view widget binding is no longer created.
2018-07-26 09:59:56 +03:00
Marco Trevisan (Treviño) ae3382a281 file-view: Always unset pending_selection after freeing it
When a file view was loaded with a pending selection, and not all the files were
seen yet, the private pending_selection list was properly free'd, but the pointer
was not cleared, causing a crash when `nautilus_files_view_set_selection` was
called again, as it was trying to deeply copy a list pointed by this invalid
reference.

So, removing the unneeded `pending_selection` temporary pointer from the main
function scope, as it only confuses, while use it (with an autolist) when we
need to pass the previous `priv->pending_selection` (stealing its ownership)
to set_selection again.

Eventually use a g_clear_pointer to free the list and nullify its priv reference

Fixes #295
2018-07-26 05:59:43 +00:00
Carlos Soriano bd101db935 file-utilities: Use proper switch/case code style 2018-07-26 04:47:47 +00:00
Marco Trevisan (Treviño) 2d9bd2c1e8 shell-search-provider: Use indexed search on nautilus launch only if disabled
In case we're searching something from the overview, we expect the same results
to be opened in nautilus, whatever the user set on the options regarding how he
wants to perform the search.

At the same way we don't want to block simple-search to run in this case if the
user has enabled recursive search, since this action is something that is
explicitly requested.
2018-07-26 04:18:54 +02:00
Marco Trevisan (Treviño) 36f512fe19 shell-search-provider: override hidden files search only for overview
We should limit search to hidden files only when searching in overview, not when
nautilus is launched from the shell search results.

In fact, while it make sense to present only main results in the overview search,
it's better to follow user preferences when clicking on the nautilus icon on
search results, as we expect that nautilus view to go deeper if the user is fine
with searching into hidden files.
2018-07-26 04:18:53 +02:00
Marco Trevisan (Treviño) 16d8b80cc4 shell: pass the full query to the slot to preserve all settings
Instead of just opening a window with just the location and search terms,
we should pass to the window slot the full nautilus query with all the
shell search provider flags, so that they will be respected and that the
results in the overview will respect the ones in nautilus
2018-07-26 04:18:53 +02:00
Marco Trevisan (Treviño) 99f55748ef file: Also use FS remote attribute in is_remote
Gio can provide us this info, so we can use this together with the checks
nautilus already does.

However, since there are many false-positives cases (like when using a fuse
filesystem that is actually a remote mount, like sshfs or similar), we can't
take this information as granted.
2018-07-26 04:18:53 +02:00
Marco Trevisan (Treviño) feadc9fee9 nautilus-query-editor: set query recursive option as it is
Just use settings_search_get_recursive_for_location to prompt to the user
what's going to happen, although this might not be 100% certain, if a sub-dir
is actually a network-mounted folder.
2018-07-26 04:18:53 +02:00
Marco Trevisan (Treviño) de36e000f4 search-engine: add is_recursive_search function and use it
Returns whether the search should be recursive given the location and the
search engine type.

Using this both in tracker and simple search engines.
2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño) 2553625f6d search-engine: use nautilus_file_is_remote to check remote files 2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño) 7c96419c7a search-engine-tracker: enable recursion on local files
Also, query location should affect recursive
2018-07-26 02:49:37 +02:00