aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt2
-rw-r--r--e-util/e-table-specification.c13
-rw-r--r--e-util/e-table-specification.h2
3 files changed, 17 insertions, 0 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index 989ea338c0..4cfcb810b6 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3926,6 +3926,8 @@ E_IS_TABLE_SPECIFICATION_CLASS
E_TABLE_SPECIFICATION_GET_CLASS
ETableSpecificationClass
e_table_specification_get_type
+<SUBSECTION Private>
+ETableSpecificationPrivate
</SECTION>
<SECTION>
diff --git a/e-util/e-table-specification.c b/e-util/e-table-specification.c
index b14bbde9df..3dbff96c8a 100644
--- a/e-util/e-table-specification.c
+++ b/e-util/e-table-specification.c
@@ -29,6 +29,14 @@
#include "e-xml-utils.h"
+#define E_TABLE_SPECIFICATION_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE \
+ ((obj), E_TYPE_TABLE_SPECIFICATION, ETableSpecificationPrivate))
+
+struct _ETableSpecificationPrivate {
+ gint placeholder;
+};
+
G_DEFINE_TYPE (
ETableSpecification,
e_table_specification,
@@ -74,6 +82,8 @@ e_table_specification_class_init (ETableSpecificationClass *class)
{
GObjectClass *object_class;
+ g_type_class_add_private (class, sizeof (ETableSpecificationPrivate));
+
object_class = G_OBJECT_CLASS (class);
object_class->dispose = table_specification_dispose;
object_class->finalize = table_specification_finalize;
@@ -82,6 +92,9 @@ e_table_specification_class_init (ETableSpecificationClass *class)
static void
e_table_specification_init (ETableSpecification *specification)
{
+ specification->priv =
+ E_TABLE_SPECIFICATION_GET_PRIVATE (specification);
+
specification->alternating_row_colors = TRUE;
specification->no_headers = FALSE;
specification->click_to_add = FALSE;
diff --git a/e-util/e-table-specification.h b/e-util/e-table-specification.h
index feada9e82c..2fec4b8e40 100644
--- a/e-util/e-table-specification.h
+++ b/e-util/e-table-specification.h
@@ -53,9 +53,11 @@ G_BEGIN_DECLS
typedef struct _ETableSpecification ETableSpecification;
typedef struct _ETableSpecificationClass ETableSpecificationClass;
+typedef struct _ETableSpecificationPrivate ETableSpecificationPrivate;
struct _ETableSpecification {
GObject parent;
+ ETableSpecificationPrivate *priv;
ETableColumnSpecification **columns;
ETableState *state;