From 05c04b5512f8e6cc73b7c9ddb78640212cbdd71d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Jun 2013 11:59:40 -0400 Subject: ETableState: Add a "specification" construct-only property. ETableState now keeps a weak reference on the ETableSpecification to which it's associated. The plan is to replace the column index numbers with a direct reference to an ETableColumnSpecification from the spec. New functions: e_table_state_ref_specification() --- e-util/e-table-state.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'e-util/e-table-state.h') diff --git a/e-util/e-table-state.h b/e-util/e-table-state.h index 27bda8440e..cd5d3e97fe 100644 --- a/e-util/e-table-state.h +++ b/e-util/e-table-state.h @@ -48,6 +48,9 @@ G_BEGIN_DECLS +/* Avoid a circular dependency. */ +struct _ETableSpecification; + typedef struct _ETableState ETableState; typedef struct _ETableStateClass ETableStateClass; typedef struct _ETableStatePrivate ETableStatePrivate; @@ -67,8 +70,10 @@ struct _ETableStateClass { }; GType e_table_state_get_type (void) G_GNUC_CONST; -ETableState * e_table_state_new (void); -ETableState * e_table_state_vanilla (gint col_count); +ETableState * e_table_state_new (struct _ETableSpecification *specification); +ETableState * e_table_state_vanilla (struct _ETableSpecification *specification); +struct _ETableSpecification * + e_table_state_ref_specification (ETableState *state); gboolean e_table_state_load_from_file (ETableState *state, const gchar *filename); void e_table_state_load_from_string (ETableState *state, -- cgit v1.2.3