[evolution] ETableSpecification: Add a private section.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] ETableSpecification: Add a private section.
- Date: Tue, 2 Jul 2013 15:25:16 +0000 (UTC)
commit e663dec920f8359f07c6047f2ef3eb10f052f1e8
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jun 26 12:53:30 2013 -0400
ETableSpecification: Add a private section.
.../evolution-util/evolution-util-sections.txt | 2 ++
e-util/e-table-specification.c | 13 +++++++++++++
e-util/e-table-specification.h | 2 ++
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 989ea33..4cfcb81 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 b14bbde..3dbff96 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 feada9e..2fec4b8 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]