diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-26 23:59:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 22:34:08 +0800 |
commit | 05c04b5512f8e6cc73b7c9ddb78640212cbdd71d (patch) | |
tree | f826ff6ac1043cecd9920c0b880631ea00131517 /e-util/e-table-state.h | |
parent | 9deb892820f4b9d121b971d6af86116f3e18b6e2 (diff) | |
download | gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.gz gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.bz2 gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.lz gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.xz gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.zst gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.zip |
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()
Diffstat (limited to 'e-util/e-table-state.h')
-rw-r--r-- | e-util/e-table-state.h | 9 |
1 files changed, 7 insertions, 2 deletions
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, |