summaryrefslogtreecommitdiff
path: root/libnautilus-extension
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2004-03-04 20:29:58 +0000
committerDave Camp <campd@src.gnome.org>2004-03-04 20:29:58 +0000
commit7c8e7911bd76b10531e39447dab4bbb0f3b1a064 (patch)
tree0ca4cf16c1305ccf1c3cd103664b08b0cd7a35b8 /libnautilus-extension
parente4cb17ba3578e14e0385d51b52e05761584265fd (diff)
downloadnautilus-7c8e7911bd76b10531e39447dab4bbb0f3b1a064.tar.gz
New function.
2004-03-04 Dave Camp <dave@ximian.com> * libnautilus-extension/nautilus-file-info.c: (nautilus_file_info_invalidate_extension_info): * libnautilus-extension/nautilus-file-info.h: * libnautilus-private/nautilus-file.c: (nautilus_file_invalidate_extension_info), (nautilus_file_info_iface_init): New function.
Diffstat (limited to 'libnautilus-extension')
-rw-r--r--libnautilus-extension/nautilus-file-info.c9
-rw-r--r--libnautilus-extension/nautilus-file-info.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/libnautilus-extension/nautilus-file-info.c b/libnautilus-extension/nautilus-file-info.c
index e245de9d7..bbc446611 100644
--- a/libnautilus-extension/nautilus-file-info.c
+++ b/libnautilus-extension/nautilus-file-info.c
@@ -200,3 +200,12 @@ nautilus_file_info_add_string_attribute (NautilusFileInfo *file,
NAUTILUS_FILE_INFO_GET_IFACE (file)->add_string_attribute
(file, attribute_name, value);
}
+
+void
+nautilus_file_info_invalidate_extension_info (NautilusFileInfo *file)
+{
+ g_return_if_fail (NAUTILUS_IS_FILE_INFO (file));
+ g_return_if_fail (NAUTILUS_FILE_INFO_GET_IFACE (file)->invalidate_extension_info != NULL);
+
+ NAUTILUS_FILE_INFO_GET_IFACE (file)->invalidate_extension_info (file);
+}
diff --git a/libnautilus-extension/nautilus-file-info.h b/libnautilus-extension/nautilus-file-info.h
index ac7a67f1d..ab44b09ad 100644
--- a/libnautilus-extension/nautilus-file-info.h
+++ b/libnautilus-extension/nautilus-file-info.h
@@ -73,6 +73,7 @@ struct _NautilusFileInfoIface
void (*add_string_attribute) (NautilusFileInfo *file,
const char *attribute_name,
const char *value);
+ void (*invalidate_extension_info) (NautilusFileInfo *file);
};
GList *nautilus_file_info_list_copy (GList *files);
@@ -110,6 +111,9 @@ void nautilus_file_info_add_string_attribute (NautilusFileInfo *fil
const char *attribute_name,
const char *value);
+/* Invalidating file info */
+void nautilus_file_info_invalidate_extension_info (NautilusFileInfo *file);
+
G_END_DECLS
#endif