diff options
-rw-r--r-- | doc/reference/evolution-util/evolution-util-sections.txt | 2 | ||||
-rw-r--r-- | e-util/gal-view.c | 11 | ||||
-rw-r--r-- | 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 7c7534d218..140b25a369 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 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 { |