summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-02-24 01:45:11 +0000
committerDarin Adler <darin@src.gnome.org>2001-02-24 01:45:11 +0000
commitfe3f645c635760a9851105c243692d95883ad4dc (patch)
treec9a0843d3c8dfc278b67eaa4db753b285dd4c856 /libnautilus-private/nautilus-file.h
parent84fa3e48f3c3453994bf6f4f3d860139a0e15936 (diff)
downloadnautilus-fe3f645c635760a9851105c243692d95883ad4dc.tar.gz
reviewed by: John Sullivan <sullivan@eazel.com>
Fixed bug 6738 (View as Web Page window closes if user follows bad link). The shell was closing the window as part of its feature to close windows when the underlying item is deleted. * libnautilus-extensions/nautilus-file.h: * libnautilus-extensions/nautilus-file.c: (nautilus_file_is_not_yet_confirmed): Added new function so we can tell a file that's never been seen from one that we already have information about. * src/nautilus-window-private.h: * src/nautilus-window-manage-views.c: (viewed_file_changed_callback): Keep track of whether we have ever seen the file for real, and only close the window if it was here before and is now gone, rather than if it was never there. This is a roundabout way to fix the problem reported, but seems like a nice rule in any case. Also added FIXMEs to some questionable code I found here. (update_for_new_location): Set up the variable that is used to check if we have ever seen the file for real. * src/nautilus-about.c: Formatting tweaks.
Diffstat (limited to 'libnautilus-private/nautilus-file.h')
-rw-r--r--libnautilus-private/nautilus-file.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-file.h b/libnautilus-private/nautilus-file.h
index f1d27a6bf..a8593c534 100644
--- a/libnautilus-private/nautilus-file.h
+++ b/libnautilus-private/nautilus-file.h
@@ -2,7 +2,7 @@
nautilus-file.h: Nautilus file model.
- Copyright (C) 1999, 2000 Eazel, Inc.
+ Copyright (C) 1999, 2000, 2001 Eazel, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -116,7 +116,7 @@ void nautilus_file_invalidate_attributes (Nautilu
void nautilus_file_invalidate_all_attributes (NautilusFile *file);
/* Basic attributes for file objects. */
-gboolean nautilus_file_contains_text (NautilusFile *file);
+gboolean nautilus_file_contains_text (NautilusFile *file);
char * nautilus_file_get_name (NautilusFile *file);
char * nautilus_file_get_uri (NautilusFile *file);
char * nautilus_file_get_uri_scheme (NautilusFile *file);
@@ -144,9 +144,7 @@ NautilusRequestStatus nautilus_file_get_deep_counts (Nautilu
guint *file_count,
guint *unreadable_directory_count,
GnomeVFSFileSize *total_size);
-
-gboolean nautilus_file_should_show_directory_item_count (NautilusFile *file);
-
+gboolean nautilus_file_should_show_directory_item_count (NautilusFile *file);
GList * nautilus_file_get_keywords (NautilusFile *file);
void nautilus_file_set_keywords (NautilusFile *file,
GList *keywords);
@@ -202,6 +200,12 @@ void nautilus_file_cancel (Nautilu
*/
gboolean nautilus_file_is_gone (NautilusFile *file);
+/* Return true if this file is not confirmed to have ever really
+ * existed. This is true when the NautilusFile object has been created, but no I/O
+ * has yet confirmed the existence of a file by that name.
+ */
+gboolean nautilus_file_is_not_yet_confirmed (NautilusFile *file);
+
/* Simple getting and setting top-level metadata. */
char * nautilus_file_get_metadata (NautilusFile *file,
const char *key,