aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-03 00:27:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:49 +0800
commita2818bc4eaed3c304a9067b8cf25b4aee345d9b4 (patch)
tree6ef16516adb9da3a09096fea9b750f4f959a187d /e-util
parent6db972ab0fd2f223aea07c6a413d39a01c41152b (diff)
downloadgsoc2013-evolution-a2818bc4eaed3c304a9067b8cf25b4aee345d9b4.tar.gz
gsoc2013-evolution-a2818bc4eaed3c304a9067b8cf25b4aee345d9b4.tar.zst
gsoc2013-evolution-a2818bc4eaed3c304a9067b8cf25b4aee345d9b4.zip
GalView: Add a private section.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/gal-view.c11
-rw-r--r--e-util/gal-view.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/e-util/gal-view.c b/e-util/gal-view.c
index 9bf2e16320..4fd777182f 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 62a41ff406..18de6d1ad5 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 {