aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-01 07:28:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-02 22:34:10 +0800
commit27c8788ce83ee646fddebeece57c7aecc04c7d38 (patch)
treea8208019dbf077e8995662f5a5ad6aed71eec80a
parent30d15fc59cae5a45b0a0b7e2f674e92a1e229d67 (diff)
downloadgsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar.gz
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar.bz2
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar.lz
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar.xz
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.tar.zst
gsoc2013-evolution-27c8788ce83ee646fddebeece57c7aecc04c7d38.zip
e_table_new: Remove unused "state_str" parameter.
-rw-r--r--e-util/e-table-config.c4
-rw-r--r--e-util/e-table.c24
-rw-r--r--e-util/e-table.h6
3 files changed, 8 insertions, 26 deletions
diff --git a/e-util/e-table-config.c b/e-util/e-table-config.c
index 8f339b5c1d..cf6f9dbf28 100644
--- a/e-util/e-table-config.c
+++ b/e-util/e-table-config.c
@@ -691,7 +691,7 @@ e_table_proxy_etable_shown_new (ETableModel *store)
model = e_table_subset_variable_new (store);
- widget = e_table_new (model, NULL, spec, NULL);
+ widget = e_table_new (model, NULL, spec);
atk_object_set_name (
gtk_widget_get_accessible (widget),
@@ -711,7 +711,7 @@ e_table_proxy_etable_available_new (ETableModel *store)
e_table_without_show_all (E_TABLE_WITHOUT (model));
- widget = e_table_new (model, NULL, spec, NULL);
+ widget = e_table_new (model, NULL, spec);
atk_object_set_name (
gtk_widget_get_accessible (widget),
diff --git a/e-util/e-table.c b/e-util/e-table.c
index 9b97c8b227..46c7b43147 100644
--- a/e-util/e-table.c
+++ b/e-util/e-table.c
@@ -1902,7 +1902,6 @@ et_real_construct (ETable *e_table,
* @etm: The model for this table.
* @ete: An optional #ETableExtras. (%NULL is valid.)
* @spec_str: The spec.
- * @state_str: An optional state. (%NULL is valid.)
*
* This is the internal implementation of e_table_new() for use by
* subclasses or language bindings. See e_table_new() for details.
@@ -1914,8 +1913,7 @@ ETable *
e_table_construct (ETable *e_table,
ETableModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str)
+ const gchar *spec_str)
{
ETableSpecification *specification;
ETableState *state;
@@ -1934,19 +1932,7 @@ e_table_construct (ETable *e_table,
return NULL;
}
- if (state_str) {
- state = e_table_state_new (specification);
- g_object_ref (state);
- e_table_state_load_from_string (state, state_str);
- if (state->col_count <= 0) {
- g_object_unref (state);
- state = specification->state;
- g_object_ref (state);
- }
- } else {
- state = specification->state;
- g_object_ref (state);
- }
+ state = g_object_ref (specification->state);
e_table = et_real_construct (e_table, etm, ete, specification, state);
@@ -2022,7 +2008,6 @@ e_table_construct_from_spec_file (ETable *e_table,
* @etm: The model for this table.
* @ete: An optional #ETableExtras. (%NULL is valid.)
* @spec_str: The spec.
- * @state_str: An optional state. (%NULL is valid.)
*
* This function creates an #ETable from the given parameters. The
* #ETableModel is a table model to be represented. The #ETableExtras
@@ -2041,8 +2026,7 @@ e_table_construct_from_spec_file (ETable *e_table,
GtkWidget *
e_table_new (ETableModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str)
+ const gchar *spec_str)
{
ETable *e_table;
@@ -2052,7 +2036,7 @@ e_table_new (ETableModel *etm,
e_table = g_object_new (E_TYPE_TABLE, NULL);
- e_table = e_table_construct (e_table, etm, ete, spec_str, state_str);
+ e_table = e_table_construct (e_table, etm, ete, spec_str);
return GTK_WIDGET (e_table);
}
diff --git a/e-util/e-table.h b/e-util/e-table.h
index 01e73cc1d6..4f147ac130 100644
--- a/e-util/e-table.h
+++ b/e-util/e-table.h
@@ -270,12 +270,10 @@ GType e_table_get_type (void) G_GNUC_CONST;
ETable * e_table_construct (ETable *e_table,
ETableModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str);
+ const gchar *spec_str);
GtkWidget * e_table_new (ETableModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str);
+ const gchar *spec_str);
/* Create an ETable using files. */
ETable * e_table_construct_from_spec_file