[evolution] GalView: Add a private section.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] GalView: Add a private section.
- Date: Fri, 5 Jul 2013 20:41:13 +0000 (UTC)
commit a2818bc4eaed3c304a9067b8cf25b4aee345d9b4
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jul 2 12:27:27 2013 -0400
GalView: Add a private section.
.../evolution-util/evolution-util-sections.txt | 2 ++
e-util/gal-view.c | 11 +++++++++++
e-util/gal-view.h | 2 ++
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index 7c7534d..140b25a 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4581,6 +4581,8 @@ GAL_IS_VIEW_CLASS
GAL_VIEW_GET_CLASS
GalViewClass
gal_view_get_type
+<SUBSECTION Private>
+GalViewPrivate
</SECTION>
<SECTION>
diff --git a/e-util/gal-view.c b/e-util/gal-view.c
index 9bf2e16..4fd7771 100644
--- a/e-util/gal-view.c
+++ b/e-util/gal-view.c
@@ -18,6 +18,14 @@
#include "gal-view.h"
+#define GAL_VIEW_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE \
+ ((obj), GAL_TYPE_VIEW, GalViewPrivate))
+
+struct _GalViewPrivate {
+ gint placeholder;
+};
+
enum {
PROP_0,
PROP_TITLE,
@@ -96,6 +104,8 @@ gal_view_class_init (GalViewClass *class)
{
GObjectClass *object_class;
+ g_type_class_add_private (class, sizeof (GalViewPrivate));
+
object_class = G_OBJECT_CLASS (class);
object_class->set_property = view_set_property;
object_class->get_property = view_get_property;
@@ -139,6 +149,7 @@ gal_view_class_init (GalViewClass *class)
static void
gal_view_init (GalView *view)
{
+ view->priv = GAL_VIEW_GET_PRIVATE (view);
}
/**
diff --git a/e-util/gal-view.h b/e-util/gal-view.h
index 62a41ff..18de6d1 100644
--- a/e-util/gal-view.h
+++ b/e-util/gal-view.h
@@ -48,9 +48,11 @@ G_BEGIN_DECLS
typedef struct _GalView GalView;
typedef struct _GalViewClass GalViewClass;
+typedef struct _GalViewPrivate GalViewPrivate;
struct _GalView {
GObject parent;
+ GalViewPrivate *priv;
};
struct _GalViewClass {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]