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.c | |
parent | 9deb892820f4b9d121b971d6af86116f3e18b6e2 (diff) | |
download | gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.gz 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.c')
-rw-r--r-- | e-util/e-table.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/e-util/e-table.c b/e-util/e-table.c index a4c809a99c..24ee13f38c 100644 --- a/e-util/e-table.c +++ b/e-util/e-table.c @@ -1625,7 +1625,7 @@ e_table_set_state (ETable *e_table, g_return_if_fail (E_IS_TABLE (e_table)); g_return_if_fail (state_str != NULL); - state = e_table_state_new (); + state = e_table_state_new (e_table->spec); e_table_state_load_from_string (state, state_str); if (state->col_count > 0) @@ -1651,7 +1651,7 @@ e_table_load_state (ETable *e_table, g_return_if_fail (E_IS_TABLE (e_table)); g_return_if_fail (filename != NULL); - state = e_table_state_new (); + state = e_table_state_new (e_table->spec); e_table_state_load_from_file (state, filename); if (state->col_count > 0) @@ -1677,7 +1677,7 @@ e_table_get_state_object (ETable *e_table) gint full_col_count; gint i, j; - state = e_table_state_new (); + state = e_table_state_new (e_table->spec); if (state->sort_info) g_object_unref (state->sort_info); state->sort_info = e_table->sort_info; @@ -1924,7 +1924,7 @@ e_table_construct (ETable *e_table, } if (state_str) { - state = e_table_state_new (); + state = e_table_state_new (specification); g_object_ref (state); e_table_state_load_from_string (state, state_str); if (state->col_count <= 0) { @@ -1982,7 +1982,7 @@ e_table_construct_from_spec_file (ETable *e_table, } if (state_fn) { - state = e_table_state_new (); + state = e_table_state_new (specification); if (!e_table_state_load_from_file (state, state_fn)) { g_object_unref (state); state = specification->state; |