[evolution] GalViewCollection: Add a private section.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] GalViewCollection: Add a private section.
- Date: Fri, 5 Jul 2013 20:43:09 +0000 (UTC)
commit 25d2fab96e6c74c7c2b7ff6134b0bb54ed3ce384
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jul 5 10:36:28 2013 -0400
GalViewCollection: Add a private section.
.../evolution-util/evolution-util-sections.txt | 2 ++
e-util/gal-view-collection.c | 12 ++++++++++++
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 4572161..d82ba7d 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 19d1546..39027af 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 ab5c54c..9926e8b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]