diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-08-26 15:57:05 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-08-26 15:58:20 +0200 |
commit | 8d983a4547a37d93e88960ea0c64cca67f9bbd29 (patch) | |
tree | 374a87007df8bf335bd2598268c0f63a67f4565b /gtk/gtkfilesystem.h | |
parent | 904769b0049f5e817d1d85ff1df9ea2dd012836e (diff) | |
download | gtk+-8d983a4547a37d93e88960ea0c64cca67f9bbd29.tar.gz |
gtk/gtkfilesystem: Do not use GET_PRIVATE macro all the time
Use a private pointer instead
Diffstat (limited to 'gtk/gtkfilesystem.h')
-rw-r--r-- | gtk/gtkfilesystem.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/gtk/gtkfilesystem.h b/gtk/gtkfilesystem.h index a92c8f89e9..1e5acb3c24 100644 --- a/gtk/gtkfilesystem.h +++ b/gtk/gtkfilesystem.h @@ -33,6 +33,11 @@ G_BEGIN_DECLS #define GTK_IS_FILE_SYSTEM_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_FILE_SYSTEM)) #define GTK_FILE_SYSTEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_FILE_SYSTEM, GtkFileSystemClass)) +typedef struct GtkFileSystem GtkFileSystem; +typedef struct GtkFileSystemPriv GtkFileSystemPriv; +typedef struct GtkFileSystemClass GtkFileSystemClass; + + #define GTK_TYPE_FOLDER (_gtk_folder_get_type ()) #define GTK_FOLDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_FOLDER, GtkFolder)) #define GTK_FOLDER_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_FOLDER, GtkFolderClass)) @@ -40,13 +45,21 @@ G_BEGIN_DECLS #define GTK_IS_FOLDER_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_FOLDER)) #define GTK_FOLDER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_FOLDER, GtkFolderClass)) -typedef struct GtkFileSystemClass GtkFileSystemClass; -typedef struct GtkFileSystem GtkFileSystem; -typedef struct GtkFolderClass GtkFolderClass; -typedef struct GtkFolder GtkFolder; +typedef struct GtkFolder GtkFolder; +typedef struct GtkFolderPriv GtkFolderPriv; +typedef struct GtkFolderClass GtkFolderClass; + typedef struct GtkFileSystemVolume GtkFileSystemVolume; /* opaque struct */ typedef struct GtkFileSystemBookmark GtkFileSystemBookmark; /* opaque struct */ + +struct GtkFileSystem +{ + GObject parent_object; + + GtkFileSystemPriv *priv; +}; + struct GtkFileSystemClass { GObjectClass parent_class; @@ -55,9 +68,12 @@ struct GtkFileSystemClass void (*volumes_changed) (GtkFileSystem *file_system); }; -struct GtkFileSystem + +struct GtkFolder { GObject parent_object; + + GtkFolderPriv *priv; }; struct GtkFolderClass @@ -74,10 +90,6 @@ struct GtkFolderClass void (*deleted) (GtkFolder *folder); }; -struct GtkFolder -{ - GObject parent_object; -}; typedef void (* GtkFileSystemGetFolderCallback) (GCancellable *cancellable, GtkFolder *folder, |