diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-02-13 16:17:58 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-02-17 11:27:46 +0100 |
commit | afd4a859fac9d951758360cae6211c1d4da1cf04 (patch) | |
tree | e37384cc361a5f428ae6bdede47513bc4d577cca /src/nautilus-list-view.c | |
parent | 2f4b6d6a8f2689b7d15db1a770666e1f289dff9a (diff) | |
download | nautilus-afd4a859fac9d951758360cae6211c1d4da1cf04.tar.gz |
nautilus-list-view: use parent folder name as location
Design request. Having a full location is too much in most of the cases
and makes all the columns too much wide.
So show only the parent folder name.
https://bugzilla.gnome.org/show_bug.cgi?id=744237
Diffstat (limited to 'src/nautilus-list-view.c')
-rw-r--r-- | src/nautilus-list-view.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c index 0f2a7ad6c..15f46aedd 100644 --- a/src/nautilus-list-view.c +++ b/src/nautilus-list-view.c @@ -1828,13 +1828,7 @@ location_cell_data_func (GtkTreeViewColumn *column, */ where = g_strdup (""); } else if (g_file_has_prefix (dir_location, base_location)) { - gchar *relative_path; - - relative_path = g_file_get_relative_path (base_location, - dir_location); - where = g_filename_display_name (relative_path); - - g_free (relative_path); + where = g_file_get_basename (dir_location); } if (where != NULL) { |