diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-05 22:36:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:50 +0800 |
commit | 25d2fab96e6c74c7c2b7ff6134b0bb54ed3ce384 (patch) | |
tree | d1111c8cd3929ec0fca61f644af267626be18c1a | |
parent | f6de38811c202186415e6647ef43511525c80572 (diff) | |
download | gsoc2013-evolution-25d2fab96e6c74c7c2b7ff6134b0bb54ed3ce384.tar.gz gsoc2013-evolution-25d2fab96e6c74c7c2b7ff6134b0bb54ed3ce384.tar.zst gsoc2013-evolution-25d2fab96e6c74c7c2b7ff6134b0bb54ed3ce384.zip |
GalViewCollection: Add a private section.
-rw-r--r-- | doc/reference/evolution-util/evolution-util-sections.txt | 2 | ||||
-rw-r--r-- | e-util/gal-view-collection.c | 12 | ||||
-rw-r--r-- | e-util/gal-view-collection.h | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt index 45721611fb..d82ba7d1d0 100644 --- a/doc/reference/evolution-util/evolution-util-sections.txt +++ b/doc/reference/evolution-util/evolution-util-sections.txt @@ -4615,6 +4615,8 @@ GAL_IS_VIEW_COLLECTION_CLASS GAL_VIEW_COLLECTION_GET_CLASS GalViewCollectionClass gal_view_collection_get_type +<SUBSECTION Private> +GalViewCollectionPrivate </SECTION> <SECTION> diff --git a/e-util/gal-view-collection.c b/e-util/gal-view-collection.c index 19d15462b0..39027af742 100644 --- a/e-util/gal-view-collection.c +++ b/e-util/gal-view-collection.c @@ -28,6 +28,14 @@ #include "e-unicode.h" #include "e-xml-utils.h" +#define GAL_VIEW_COLLECTION_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), GAL_TYPE_VIEW_COLLECTION, GalViewCollectionPrivate)) + +struct _GalViewCollectionPrivate { + gint placeholder; +}; + enum { PROP_0, PROP_SYSTEM_DIRECTORY, @@ -197,6 +205,8 @@ gal_view_collection_class_init (GalViewCollectionClass *class) { GObjectClass *object_class; + g_type_class_add_private (class, sizeof (GalViewCollectionPrivate)); + object_class = G_OBJECT_CLASS (class); object_class->get_property = gal_view_collection_get_property; object_class->dispose = gal_view_collection_dispose; @@ -237,6 +247,8 @@ gal_view_collection_class_init (GalViewCollectionClass *class) static void gal_view_collection_init (GalViewCollection *collection) { + collection->priv = GAL_VIEW_COLLECTION_GET_PRIVATE (collection); + collection->default_view_built_in = TRUE; } diff --git a/e-util/gal-view-collection.h b/e-util/gal-view-collection.h index ab5c54c62a..9926e8b810 100644 --- a/e-util/gal-view-collection.h +++ b/e-util/gal-view-collection.h @@ -48,11 +48,13 @@ G_BEGIN_DECLS typedef struct _GalViewCollection GalViewCollection; typedef struct _GalViewCollectionClass GalViewCollectionClass; +typedef struct _GalViewCollectionPrivate GalViewCollectionPrivate; typedef struct _GalViewCollectionItem GalViewCollectionItem; struct _GalViewCollection { GObject parent; + GalViewCollectionPrivate *priv; GalViewCollectionItem **view_data; gint view_count; |