Commit graph

21062 commits

Author SHA1 Message Date
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
Marco Trevisan (Treviño)
3a277a7baf search-engine-simple: respect recursive setting for non local children 2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
3fc6804eff search-engine-simple: get query parameters just once in a cycle 2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
1de5a3315a query: add local recursive flag for local only searches
This will allow to have a more fine grained experience
2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
aaf67ee7fd search-engine-tracker: Use recursive if the query allows it 2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
9cb63ff9a6 search-engine-simple: remove recursive property using query flag instead
Compute the recursive parameter depending on the query flag for recursivity,
enabling it only if the query recursive flag is NAUTILUS_QUERY_RECURSIVE_ALWAYS,
while should be disabled otherwise.

At this point the "recursive" property that was set only for this search engine
doesn't make any sense anymore and we can safely drop it, together with the
calls that were done at search-engine level to handle this special case.

We move now the responsibility to to the engine itself, more than to the model.
2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
002d6513ee shell-search-provider: enable recursive search on indexed engines
Allow to retrieve results from search engines which are only searching on
over indexed results (tracker, recent in future), while disable them otherwise
(simple search)
2018-07-26 02:49:37 +02:00
Marco Trevisan (Treviño)
60f47ccaf1 query: Add flags for recursive search types
Use a list of cases to define when the recursive search should be done, instead
of a simple true/false boolean.

A part from the self-explanatory cases `ALWAYS` and `NEVER`, the `IF_INDEXED`
option permits to any search engine that uses an indexed-search to return
results from subfolders of the search location.

One case we want to address, is the shell-search provider, that should not perform
recursive searches, but it could return values from subfolders of the user home
if the search is executed by search engines like tracker.
2018-07-26 02:49:37 +02:00
Carlos Soriano
b822c1e4e6 batch-rename-dialog.ui: Use margin-end and margin-start
maring-left and margin-right are deprecated and break RTL languages.
2018-07-25 23:06:14 +02:00
Carlos Soriano
ce3a5c721f pathbar: Implement right click actions
This is a reimplementation of fbe7cac0a0. There we removed the right
click menu from buttons in the pathbar except for the current location,
which actually we only allowed a left click to open the menu.

This goes with the strategy to make everything touch ready and unify the
experience, however it really prevents to perform actions in folders
that are part of the hierarchy. While I'm not sure how valuable it is,
I guess removing this would need a bit more investigation.

So to not cause much impact, this works reimplements the right click
menu with the new design and a popover.
2018-07-25 23:06:14 +02:00
Carlos Soriano
8742c4112d view-icon: Fix and improve visuals
There were few visual inconsistencies due to either code typos or
lack of a bit of design.
2018-07-25 23:03:33 +02:00