[nautilus] properties-window: Don't display "Parent folder" for trash
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: Don't display "Parent folder" for trash
- Date: Mon, 21 May 2018 20:00:53 +0000 (UTC)
commit a908985929031262bcfb90b553d246b063bd5fea
Author: George Mocanu <mocanu geo98 gmail com>
Date: Sun May 20 01:23:09 2018 +0300
properties-window: Don't display "Parent folder" for trash
The "Parent folder" label is displayed for multi-item properties
in Trash, alongside with the "Original folder" label.
The "Parent folder" label shouldn't be displayed since there is
another label for trashed items and the informations displayed
by it are useless for this kind of items.
Closes https://gitlab.gnome.org/GNOME/nautilus/issues/417
src/nautilus-properties-window.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 67ae683a9..c23967120 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2636,13 +2636,17 @@ should_show_file_type (NautilusPropertiesWindow *window)
static gboolean
should_show_location_info (NautilusPropertiesWindow *window)
{
- if (!is_multi_file_window (window)
- && (nautilus_file_is_in_trash (get_target_file (window)) ||
- is_root_directory (get_target_file (window)) ||
- is_network_directory (get_target_file (window)) ||
- is_burn_directory (get_target_file (window))))
+ GList *l;
+
+ for (l = window->original_files; l != NULL; l = l->next)
{
- return FALSE;
+ if (nautilus_file_is_in_trash (NAUTILUS_FILE (l->data)) ||
+ is_root_directory (NAUTILUS_FILE (l->data)) ||
+ is_network_directory (NAUTILUS_FILE (l->data)) ||
+ is_burn_directory (NAUTILUS_FILE (l->data)))
+ {
+ return FALSE;
+ }
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]