summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-directory-notify.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-08-10 17:03:06 +0000
committerDarin Adler <darin@src.gnome.org>2000-08-10 17:03:06 +0000
commit7bb5ecd9412ff19089a07ce0351646b3f39e6fdd (patch)
tree7ac296ab5c5819b822cbade8f575b84ff1a1dd67 /libnautilus-private/nautilus-directory-notify.h
parent650b212db1e1861e6e766a500ffccebbf714c454 (diff)
downloadnautilus-7bb5ecd9412ff19089a07ce0351646b3f39e6fdd.tar.gz
Moved the notify calls to a separate header, since people were using them
* libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-directory-notify.h: * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-file-changes-queue.c: * libnautilus-extensions/nautilus-link.c: * libnautilus-extensions/nautilus-volume-monitor.c: Moved the notify calls to a separate header, since people were using them as an excuse to peek at NautilusDirectory's privates. * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_get_internal), (nautilus_directory_get), (nautilus_directory_get_existing): Cleaned up API so that internal code can get a directory without creating one. (get_parent_directory_if_exists): Used new API to cut down code a bit. (nautilus_directory_notify_files_removed), (nautilus_directory_notify_files_moved): Always create a NautilusFile object. This results in a bit more work, but is more compatible with the 1/2 done symbolic link change notify work. * libnautilus-extensions/nautilus-file.c: (nautilus_file_get_internal): Don't create a new directory if being called in the mode where we don't create a new file. (update_link), (get_link_files), (update_links_if_target), (nautilus_file_update_info), (nautilus_file_mark_gone), (nautilus_file_emit_changed): More work on notifying links about changes to the target file. This isn't quite working and isn't required so I'll get back to it later. At the moment it is not doing any harm.
Diffstat (limited to 'libnautilus-private/nautilus-directory-notify.h')
-rw-r--r--libnautilus-private/nautilus-directory-notify.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-directory-notify.h b/libnautilus-private/nautilus-directory-notify.h
new file mode 100644
index 000000000..ac15a1b8b
--- /dev/null
+++ b/libnautilus-private/nautilus-directory-notify.h
@@ -0,0 +1,35 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ nautilus-directory-notify.h: Nautilus directory notify calls.
+
+ Copyright (C) 2000 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
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Darin Adler <darin@eazel.com>
+*/
+
+#include <glib.h>
+
+typedef struct {
+ char *from_uri;
+ char *to_uri;
+} URIPair;
+
+/* Almost-public change notification calls */
+void nautilus_directory_notify_files_added (GList *uris);
+void nautilus_directory_notify_files_moved (GList *uri_pairs);
+void nautilus_directory_notify_files_removed (GList *uris);