summaryrefslogtreecommitdiff
path: root/libnautilus-extension
diff options
context:
space:
mode:
authorChristian Neumair <chris@gnome-de.org>2006-12-18 19:38:57 +0000
committerChristian Neumair <cneumair@src.gnome.org>2006-12-18 19:38:57 +0000
commitc68589f4efe18ebd14b893ea5d9e335594f7d188 (patch)
treee979fe9339ca60edb96e51629f9e3e378afcf42b /libnautilus-extension
parent0034d4aca23849af686cc50520aa1ab28a231362 (diff)
downloadnautilus-c68589f4efe18ebd14b893ea5d9e335594f7d188.tar.gz
Add nautilus_file_info_get_activation_uri().
2006-12-18 Christian Neumair <chris@gnome-de.org> * libnautilus-extension/nautilus-file-info.c: * libnautilus-extension/nautilus-file-info.h: * libnautilus-private/nautilus-file.c: Add nautilus_file_info_get_activation_uri().
Diffstat (limited to 'libnautilus-extension')
-rw-r--r--libnautilus-extension/nautilus-file-info.c9
-rw-r--r--libnautilus-extension/nautilus-file-info.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/libnautilus-extension/nautilus-file-info.c b/libnautilus-extension/nautilus-file-info.c
index 7cad31f31..7157048a5 100644
--- a/libnautilus-extension/nautilus-file-info.c
+++ b/libnautilus-extension/nautilus-file-info.c
@@ -109,6 +109,15 @@ nautilus_file_info_get_uri (NautilusFileInfo *file)
}
char *
+nautilus_file_info_get_activation_uri (NautilusFileInfo *file)
+{
+ g_return_val_if_fail (NAUTILUS_IS_FILE_INFO (file), NULL);
+ g_return_val_if_fail (NAUTILUS_FILE_INFO_GET_IFACE (file)->get_activation_uri != NULL, NULL);
+
+ return NAUTILUS_FILE_INFO_GET_IFACE (file)->get_activation_uri (file);
+}
+
+char *
nautilus_file_info_get_parent_uri (NautilusFileInfo *file)
{
g_return_val_if_fail (NAUTILUS_IS_FILE_INFO (file), NULL);
diff --git a/libnautilus-extension/nautilus-file-info.h b/libnautilus-extension/nautilus-file-info.h
index 2ba0ae47a..bb1a8f682 100644
--- a/libnautilus-extension/nautilus-file-info.h
+++ b/libnautilus-extension/nautilus-file-info.h
@@ -80,6 +80,8 @@ struct _NautilusFileInfoIface
gboolean (*has_drive) (NautilusFileInfo *file);
GnomeVFSVolume* (*get_volume) (NautilusFileInfo *file);
GnomeVFSDrive* (*get_drive) (NautilusFileInfo *file);
+
+ char * (*get_activation_uri) (NautilusFileInfo *file);
};
GList *nautilus_file_info_list_copy (GList *files);
@@ -92,6 +94,7 @@ gboolean nautilus_file_info_is_gone (NautilusFileInfo *fil
/* Name and Location */
char * nautilus_file_info_get_name (NautilusFileInfo *file);
char * nautilus_file_info_get_uri (NautilusFileInfo *file);
+char * nautilus_file_info_get_activation_uri (NautilusFileInfo *file);
char * nautilus_file_info_get_parent_uri (NautilusFileInfo *file);
char * nautilus_file_info_get_uri_scheme (NautilusFileInfo *file);