diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-27 00:53:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 22:34:08 +0800 |
commit | e663dec920f8359f07c6047f2ef3eb10f052f1e8 (patch) | |
tree | a644dfd50671bc465e7bb2badb72cf11281c7129 | |
parent | e9299f623e9779bfd63a8c30b4803a2dca5ca172 (diff) | |
download | gsoc2013-evolution-e663dec920f8359f07c6047f2ef3eb10f052f1e8.tar.gz gsoc2013-evolution-e663dec920f8359f07c6047f2ef3eb10f052f1e8.tar.zst gsoc2013-evolution-e663dec920f8359f07c6047f2ef3eb10f052f1e8.zip |
ETableSpecification: Add a private section.
-rw-r--r-- | doc/reference/evolution-util/evolution-util-sections.txt | 2 | ||||
-rw-r--r-- | e-util/e-table-specification.c | 13 | ||||
-rw-r--r-- | 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 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; |