aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-01 07:39:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-02 22:34:11 +0800
commitaa505e7fe9ab95e6dab95ee9a454c17d92d07eea (patch)
tree74ce28e4cbc1d1432fe1a2578186d9280652c48f /e-util
parentf38b9b6fb7a6d7400587d517226803bf3e3aa03b (diff)
downloadgsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar.gz
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar.bz2
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar.lz
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar.xz
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.tar.zst
gsoc2013-evolution-aa505e7fe9ab95e6dab95ee9a454c17d92d07eea.zip
e_tree_new: Remove unused "state_str" parameter.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-tree.c24
-rw-r--r--e-util/e-tree.h6
2 files changed, 7 insertions, 23 deletions
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index e6dc943b34..89d04676a6 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -1632,7 +1632,6 @@ et_real_construct (ETree *tree,
* @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_tree_new() for use by
* subclasses or language bindings. See e_tree_new() for details.
@@ -1643,8 +1642,7 @@ gboolean
e_tree_construct (ETree *tree,
ETreeModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str)
+ const gchar *spec_str)
{
ETableSpecification *specification;
ETableState *state;
@@ -1659,18 +1657,8 @@ e_tree_construct (ETree *tree,
g_object_unref (specification);
return FALSE;
}
- if (state_str) {
- state = e_table_state_new (specification);
- 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);
if (!et_real_construct (tree, etm, ete, specification, state)) {
g_object_unref (specification);
@@ -1756,7 +1744,6 @@ e_tree_construct_from_spec_file (ETree *tree,
* @etm: The model for this tree
* @ete: An optional #ETableExtras (%NULL is valid.)
* @spec_str: The spec
- * @state_str: An optional state (%NULL is valid.)
*
* This function creates an #ETree from the given parameters. The
* #ETreeModel is a tree model to be represented. The #ETableExtras
@@ -1775,8 +1762,7 @@ e_tree_construct_from_spec_file (ETree *tree,
GtkWidget *
e_tree_new (ETreeModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str)
+ const gchar *spec_str)
{
ETree *tree;
@@ -1786,7 +1772,7 @@ e_tree_new (ETreeModel *etm,
tree = g_object_new (E_TYPE_TREE, NULL);
- if (!e_tree_construct (tree, etm, ete, spec_str, state_str)) {
+ if (!e_tree_construct (tree, etm, ete, spec_str)) {
g_object_unref (tree);
return NULL;
}
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 5f97d54a6e..0e64ecdf82 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -175,12 +175,10 @@ GType e_tree_get_type (void) G_GNUC_CONST;
gboolean e_tree_construct (ETree *tree,
ETreeModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str);
+ const gchar *spec_str);
GtkWidget * e_tree_new (ETreeModel *etm,
ETableExtras *ete,
- const gchar *spec_str,
- const gchar *state_str);
+ const gchar *spec_str);
/* Create an ETree using files. */
gboolean e_tree_construct_from_spec_file (ETree *tree,