aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-06-28 05:11:34 +0800
committerPeter Williams <peterw@src.gnome.org>2001-06-28 05:11:34 +0800
commit6fa46ef11d80a615733338bfe1f76acaef5eab48 (patch)
tree4bd3d8d04537d46a2163d5bf9f45b9e92d398483 /widgets/table/e-tree.c
parent780e047c0471ed396ac6ac7f2534fa81034a581f (diff)
downloadgsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar.gz
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar.bz2
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar.lz
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar.xz
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.tar.zst
gsoc2013-evolution-6fa46ef11d80a615733338bfe1f76acaef5eab48.zip
Bump version number due to incompatible changes in ETree.
2001-06-27 Peter Williams <peterw@ximian.com> * configure.in: Bump version number due to incompatible changes in ETree. gal/e-table: 2001-06-27 Peter Williams <peterw@ximian.com> * e-tree-selection-model.c (e_tree_selection_model_add_to_selection): New function, heavily based on select_single_row. * e-tree-selection-model.h: Added prototype; * e-tree.c (e_tree_get_model): New accessor function. (e_tree_get_selection_model): Same. (e_tree_selected_count, e_tree_select_all, e_tree_invert_select): Removed. With the accessors these become pointless. * e-tree.h: Prototype the functions above. Remove a few functions that don't make sense anymore. svn path=/trunk/; revision=10543
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r--widgets/table/e-tree.c63
1 files changed, 35 insertions, 28 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 49fcc0732f..7291215e0a 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -1199,34 +1199,6 @@ e_tree_selected_path_foreach (ETree *e_tree,
}
#endif
-gint
-e_tree_selected_count (ETree *e_tree)
-{
- g_return_val_if_fail(e_tree != NULL, -1);
- g_return_val_if_fail(E_IS_TREE(e_tree), -1);
-
- return e_selection_model_selected_count(E_SELECTION_MODEL (e_tree->priv->selection));
-}
-
-void
-e_tree_select_all (ETree *tree)
-{
- g_return_if_fail (tree != NULL);
- g_return_if_fail (E_IS_TREE (tree));
-
- e_selection_model_select_all (E_SELECTION_MODEL (tree->priv->selection));
-}
-
-void
-e_tree_invert_selection (ETree *tree)
-{
- g_return_if_fail (tree != NULL);
- g_return_if_fail (E_IS_TREE (tree));
-
- e_selection_model_invert_selection (E_SELECTION_MODEL (tree->priv->selection));
-}
-
-
EPrintable *
e_tree_get_printable (ETree *e_tree)
{
@@ -1493,6 +1465,41 @@ e_tree_get_tooltip (ETree *et)
return E_CANVAS(et->priv->table_canvas)->tooltip_window;
}
+/**
+ * e_tree_get_model:
+ * @et: the ETree
+ *
+ * Returns the model upon which this ETree is based.
+ *
+ * Returns: the model
+ **/
+ETreeModel *
+e_tree_get_model (ETree *et)
+{
+ g_return_val_if_fail (et != NULL, NULL);
+ g_return_val_if_fail (E_IS_TREE (et), NULL);
+
+ return et->priv->model;
+}
+
+/**
+ * e_tree_get_selection_model:
+ * @et: the ETree
+ *
+ * Returns the selection model of this ETree.
+ *
+ * Returns: the selection model
+ **/
+ESelectionModel *
+e_tree_get_selection_model (ETree *et)
+{
+ g_return_val_if_fail (et != NULL, NULL);
+ g_return_val_if_fail (E_IS_TREE (et), NULL);
+
+ return et->priv->selection;
+}
+
+
struct _ETreeDragSourceSite
{
GdkModifierType start_button_mask;