aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt2
-rw-r--r--e-util/gal-view-collection.c12
-rw-r--r--e-util/gal-view-collection.h2
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;