diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-16 08:19:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-16 08:19:38 +0800 |
commit | 6b4a736005da74862c421beda7ddf42e198e219d (patch) | |
tree | 97eb087935c15af36d86acc3e66e8d42dffb6ad5 /e-util | |
parent | ad10f874c5ca7542afbe227405f3df75635e2c36 (diff) | |
download | gsoc2013-evolution-6b4a736005da74862c421beda7ddf42e198e219d.tar.gz gsoc2013-evolution-6b4a736005da74862c421beda7ddf42e198e219d.tar.zst gsoc2013-evolution-6b4a736005da74862c421beda7ddf42e198e219d.zip |
Remove e_tree_model_node_is_editable().
It always returned FALSE.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-tree-model.c | 24 | ||||
-rw-r--r-- | e-util/e-tree-model.h | 6 | ||||
-rw-r--r-- | e-util/e-tree-table-adapter.c | 4 |
3 files changed, 1 insertions, 33 deletions
diff --git a/e-util/e-tree-model.c b/e-util/e-tree-model.c index 5e8518792a..85248918b2 100644 --- a/e-util/e-tree-model.c +++ b/e-util/e-tree-model.c @@ -556,30 +556,6 @@ e_tree_model_value_at (ETreeModel *tree_model, } /** - * e_tree_model_node_is_editable: - * @tree_model: - * @path: - * - * - * - * Return value: - **/ -gboolean -e_tree_model_node_is_editable (ETreeModel *tree_model, - ETreePath path, - gint col) -{ - ETreeModelInterface *interface; - - g_return_val_if_fail (E_IS_TREE_MODEL (tree_model), FALSE); - - interface = E_TREE_MODEL_GET_INTERFACE (tree_model); - g_return_val_if_fail (interface->is_editable != NULL, FALSE); - - return interface->is_editable (tree_model, path, col); -} - -/** * e_tree_model_duplicate_value: * @tree_model: * @col: diff --git a/e-util/e-tree-model.h b/e-util/e-tree-model.h index 41b661f87c..5162dab0ac 100644 --- a/e-util/e-tree-model.h +++ b/e-util/e-tree-model.h @@ -88,9 +88,6 @@ struct _ETreeModelInterface { gpointer (*value_at) (ETreeModel *tree_model, ETreePath path, gint col); - gboolean (*is_editable) (ETreeModel *tree_model, - ETreePath path, - gint col); gpointer (*duplicate_value) (ETreeModel *tree_model, gint col, @@ -168,9 +165,6 @@ gpointer e_tree_model_sort_value_at (ETreeModel *tree_model, gpointer e_tree_model_value_at (ETreeModel *tree_model, ETreePath path, gint col); -gboolean e_tree_model_node_is_editable (ETreeModel *tree_model, - ETreePath path, - gint col); gpointer e_tree_model_duplicate_value (ETreeModel *tree_model, gint col, gconstpointer value); diff --git a/e-util/e-tree-table-adapter.c b/e-util/e-tree-table-adapter.c index 24d606da60..89110ea5e3 100644 --- a/e-util/e-tree-table-adapter.c +++ b/e-util/e-tree-table-adapter.c @@ -665,9 +665,7 @@ etta_is_cell_editable (ETableModel *etm, gint col, gint row) { - ETreeTableAdapter *etta = (ETreeTableAdapter *) etm; - - return e_tree_model_node_is_editable (etta->priv->source, get_path (etta, row), col); + return FALSE; } static void |