diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkfilesystem.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkfilesystem.c')
-rw-r--r-- | gtk/gtkfilesystem.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c index f1e041d2c3..65cca3f75a 100644 --- a/gtk/gtkfilesystem.c +++ b/gtk/gtkfilesystem.c @@ -93,7 +93,7 @@ struct AsyncFuncData gpointer data; }; -G_DEFINE_TYPE (GtkFileSystem, _gtk_file_system, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (GtkFileSystem, _gtk_file_system, G_TYPE_OBJECT) /* GtkFileSystem methods */ @@ -151,8 +151,6 @@ _gtk_file_system_class_init (GtkFileSystemClass *class) NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); - - g_type_class_add_private (object_class, sizeof (GtkFileSystemPrivate)); } static gboolean @@ -336,10 +334,7 @@ _gtk_file_system_init (GtkFileSystem *file_system) DEBUG ("init"); - file_system->priv = G_TYPE_INSTANCE_GET_PRIVATE (file_system, - GTK_TYPE_FILE_SYSTEM, - GtkFileSystemPrivate); - priv = file_system->priv; + file_system->priv = priv = _gtk_file_system_get_instance_private (file_system); /* Volumes */ priv->volume_monitor = g_volume_monitor_get (); |