summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-01-28 21:06:10 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-01-28 21:06:10 +0000
commit7b432e94972b46bf4934c8b6b7fc02eb3f0954ea (patch)
treeeb1eb7b05a12e6f0b24d1565b0550019dedd893c
parent8cb30318e52729460cf68b5c25a41aedc1c82607 (diff)
Register local vfs with prio 0.
2008-01-28 Alexander Larsson <alexl@redhat.com> * glocalvfs.c: Register local vfs with prio 0. * gvfs.h: Remove old name and prio class members svn path=/trunk/; revision=6401
-rw-r--r--gio/ChangeLog8
-rw-r--r--gio/glocalvfs.c10
-rw-r--r--gio/gvfs.h3
3 files changed, 13 insertions, 8 deletions
diff --git a/gio/ChangeLog b/gio/ChangeLog
index ca506d5f6..7793de403 100644
--- a/gio/ChangeLog
+++ b/gio/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-28 Alexander Larsson <alexl@redhat.com>
+
+ * glocalvfs.c:
+ Register local vfs with prio 0.
+
+ * gvfs.h:
+ Remove old name and prio class members
+
2008-01-28 Matthias Clasen <mclasen@redhat.com>
* tests/g-file.c: Disable some tests that are failing in
diff --git a/gio/glocalvfs.c b/gio/glocalvfs.c
index 7f64905ab..165faf70c 100644
--- a/gio/glocalvfs.c
+++ b/gio/glocalvfs.c
@@ -43,8 +43,11 @@ struct _GLocalVfsClass
};
#define g_local_vfs_get_type _g_local_vfs_get_type
-G_DEFINE_TYPE (GLocalVfs, g_local_vfs, G_TYPE_VFS)
-
+G_DEFINE_TYPE_WITH_CODE (GLocalVfs, g_local_vfs, G_TYPE_VFS,
+ g_io_extension_point_implement (G_VFS_EXTENSION_POINT_NAME,
+ g_define_type_id,
+ "local",
+ 0))
static void
g_local_vfs_finalize (GObject *object)
{
@@ -189,9 +192,6 @@ g_local_vfs_class_init (GLocalVfsClass *class)
vfs_class = G_VFS_CLASS (class);
- vfs_class->name = "local";
- vfs_class->priority = 0;
-
vfs_class->is_active = g_local_vfs_is_active;
vfs_class->get_file_for_path = g_local_vfs_get_file_for_path;
vfs_class->get_file_for_uri = g_local_vfs_get_file_for_uri;
diff --git a/gio/gvfs.h b/gio/gvfs.h
index 484b38673..b9515c910 100644
--- a/gio/gvfs.h
+++ b/gio/gvfs.h
@@ -57,9 +57,6 @@ struct _GVfsClass
{
GObjectClass parent_class;
- const char *name;
- int priority;
-
/* Virtual Table */
gboolean (*is_active) (GVfs *vfs);