[nautilus] list-view: show location as default
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: show location as default
- Date: Tue, 11 Oct 2016 18:54:39 +0000 (UTC)
commit dedd9c61d7d1b4d685a766e9d494bc1fbc12dca3
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Oct 11 20:53:11 2016 +0200
list-view: show location as default
In the same way we show the location column for search and trash, we
should show it for recent as well.
https://bugzilla.gnome.org/show_bug.cgi?id=771287
src/nautilus-list-view.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 1b04390..d525282 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -112,6 +112,16 @@ static const char *default_search_columns_order[] =
"name", "size", "where", NULL
};
+static const char *default_recent_visible_columns[] =
+{
+ "name", "size", "where", NULL
+};
+
+static const char *default_recent_columns_order[] =
+{
+ "name", "size", "where", NULL
+};
+
static const char *default_trash_visible_columns[] =
{
"name", "size", "trash_orig_path", "trashed_on", NULL
@@ -2072,6 +2082,11 @@ get_default_visible_columns (NautilusListView *list_view)
return g_strdupv ((gchar **) default_trash_visible_columns);
}
+ if (nautilus_file_is_in_recent (file))
+ {
+ return g_strdupv ((gchar **) default_recent_visible_columns);
+ }
+
directory = nautilus_files_view_get_model (NAUTILUS_FILES_VIEW (list_view));
if (NAUTILUS_IS_SEARCH_DIRECTORY (directory))
{
@@ -2127,6 +2142,11 @@ get_default_column_order (NautilusListView *list_view)
return g_strdupv ((gchar **) default_trash_columns_order);
}
+ if (nautilus_file_is_in_recent (file))
+ {
+ return g_strdupv ((gchar **) default_recent_columns_order);
+ }
+
directory = nautilus_files_view_get_model (NAUTILUS_FILES_VIEW (list_view));
if (NAUTILUS_IS_SEARCH_DIRECTORY (directory))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]