summaryrefslogtreecommitdiff
path: root/libnautilus-extension/nautilus-file-info.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-01-04 14:34:03 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-01-04 14:34:03 +0000
commitf3b55a7cadbf347092d5bafaf78b817724fac3b0 (patch)
treedca6b8753e7f8c79c1dbc8df133677fcf220404a /libnautilus-extension/nautilus-file-info.h
parentb192a5a6ce742a790c9c00ecc3d43ac1256b8335 (diff)
downloadnautilus-f3b55a7cadbf347092d5bafaf78b817724fac3b0.tar.gz
Pull in gio, not gnome-vfs.
2008-01-04 Alexander Larsson <alexl@redhat.com> * libnautilus-extension/libnautilus-extension.pc.in: Pull in gio, not gnome-vfs. * libnautilus-extension/nautilus-file-info.[ch]: * libnautilus-private/nautilus-file.c: Export some gio specific things like file type and location/parent location. * libnautilus-private/nautilus-desktop-icon-file.c: These are G_FILE_TYPE_SHORTCUT files, not REGULAR files. svn path=/trunk/; revision=13560
Diffstat (limited to 'libnautilus-extension/nautilus-file-info.h')
-rw-r--r--libnautilus-extension/nautilus-file-info.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libnautilus-extension/nautilus-file-info.h b/libnautilus-extension/nautilus-file-info.h
index 48fa1ab8f..29002a94c 100644
--- a/libnautilus-extension/nautilus-file-info.h
+++ b/libnautilus-extension/nautilus-file-info.h
@@ -27,6 +27,7 @@
#define NAUTILUS_FILE_INFO_H
#include <glib-object.h>
+#include <gio/gio.h>
G_BEGIN_DECLS
@@ -73,6 +74,11 @@ struct _NautilusFileInfoIface
void (*invalidate_extension_info) (NautilusFileInfo *file);
char * (*get_activation_uri) (NautilusFileInfo *file);
+
+ GFileType (*get_file_type) (NautilusFileInfo *file);
+ GFile * (*get_location) (NautilusFileInfo *file);
+ GFile * (*get_parent_location) (NautilusFileInfo *file);
+
};
GList *nautilus_file_info_list_copy (GList *files);
@@ -83,9 +89,12 @@ GType nautilus_file_info_get_type (void);
gboolean nautilus_file_info_is_gone (NautilusFileInfo *file);
/* Name and Location */
+GFileType nautilus_file_info_get_file_type (NautilusFileInfo *file);
+GFile * nautilus_file_info_get_location (NautilusFileInfo *file);
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);
+GFile * nautilus_file_info_get_parent_location (NautilusFileInfo *file);
char * nautilus_file_info_get_parent_uri (NautilusFileInfo *file);
char * nautilus_file_info_get_uri_scheme (NautilusFileInfo *file);