summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-vfs-file.c
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2001-01-19 19:14:11 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2001-01-19 19:14:11 +0000
commitd23bb1b5be3ec7b2905ff3bf04c20d0733980dc9 (patch)
treede402bdad1bd1b6f3e3d6b48ddb30c59fb4af171 /libnautilus-extensions/nautilus-vfs-file.c
parent773ec652b14d4e29274588d78b88daa9c87a0096 (diff)
downloadnautilus-d23bb1b5be3ec7b2905ff3bf04c20d0733980dc9.tar.gz
reviewed by: Darin Adler <darin@eazel.com>
Finished bug 2146 (Properties window for desktop Trash should show Trash properties). The last two changes were to remove the "accessed" field for all directories, since it seems useless, and to fill in the "where" field with "on the desktop". * libnautilus-extensions/nautilus-file.c: (nautilus_file_get_where_string): New function, calls virtual function so trash and normal files can report different strings. (nautilus_file_get_string_attribute): Changed "parent_uri" string attribute to "where", since it is not the parent_uri in the Trash case. * libnautilus-extensions/nautilus-file.h: Virtual function pointer for get_where_string. * libnautilus-extensions/nautilus-trash-file.c: (trash_file_get_where_string), (nautilus_trash_file_initialize_class): Supply get_where_string function that returns "on the desktop". * libnautilus-extensions/nautilus-vfs-file.c: (vfs_file_get_where_string), (nautilus_vfs_file_initialize_class): Supply get_where_string function that returns parent_uri string. * src/file-manager/fm-properties-window.c: (should_show_accessed_date): New function, returns FALSE for directories and TRUE for other files. (create_basic_page): Honor should_show_accessed_date, and use "where" instead of "parent_uri" string attribute. * src/file-manager/fm-search-list-view.c: (real_get_column_specification): Use "where" instead of "parent_uri" string attribute.
Diffstat (limited to 'libnautilus-extensions/nautilus-vfs-file.c')
-rw-r--r--libnautilus-extensions/nautilus-vfs-file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-vfs-file.c b/libnautilus-extensions/nautilus-vfs-file.c
index eba08921b..6f20c754b 100644
--- a/libnautilus-extensions/nautilus-vfs-file.c
+++ b/libnautilus-extensions/nautilus-vfs-file.c
@@ -229,6 +229,12 @@ vfs_file_get_date (NautilusFile *file,
return FALSE;
}
+static char *
+vfs_file_get_where_string (NautilusFile *file)
+{
+ return nautilus_file_get_parent_uri_for_display (file);
+}
+
static void
nautilus_vfs_file_initialize (gpointer object, gpointer klass)
{
@@ -265,4 +271,5 @@ nautilus_vfs_file_initialize_class (gpointer klass)
file_class->get_item_count = vfs_file_get_item_count;
file_class->get_deep_counts = vfs_file_get_deep_counts;
file_class->get_date = vfs_file_get_date;
+ file_class->get_where_string = vfs_file_get_where_string;
}