From a2818bc4eaed3c304a9067b8cf25b4aee345d9b4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 2 Jul 2013 12:27:27 -0400 Subject: GalView: Add a private section. --- e-util/gal-view.c | 11 +++++++++++ e-util/gal-view.h | 2 ++ 2 files changed, 13 insertions(+) (limited to 'e-util') 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 { -- cgit