aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-selection-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-10 11:22:33 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-10 11:22:33 +0800
commitf37767da8e80f84a5ecf98c17259c24c9a875ebc (patch)
tree0dc6fcf7ac16b158cdc59a22b2f453a91efbb608 /widgets/table/e-tree-selection-model.c
parentbdb627f2439cdff4c1acd0ed05bcd16d3b45c139 (diff)
downloadgsoc2013-evolution-f37767da8e80f84a5ecf98c17259c24c9a875ebc.tar.gz
gsoc2013-evolution-f37767da8e80f84a5ecf98c17259c24c9a875ebc.tar.zst
gsoc2013-evolution-f37767da8e80f84a5ecf98c17259c24c9a875ebc.zip
Changed resizeable to resizable in ETableCol for consistency.
2001-04-09 Christopher James Lahey <clahey@ximian.com> * e-table-col.c, e-table-col.h, e-table-header-item.c, e-table-header.c, e-table-item.c: Changed resizeable to resizable in ETableCol for consistency. * e-tree-selection-model.c (etsm_row_of_node): Return -1 here if the path isn't found. (etsm_sorted_node_changed): If cursor_row is -1, make cursor_col -1 as well. svn path=/trunk/; revision=9211
Diffstat (limited to 'widgets/table/e-tree-selection-model.c')
-rw-r--r--widgets/table/e-tree-selection-model.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c
index 30cbc5aa90..e376352f19 100644
--- a/widgets/table/e-tree-selection-model.c
+++ b/widgets/table/e-tree-selection-model.c
@@ -142,7 +142,7 @@ etsm_row_of_node(ETreeSelectionModel *etsm, ETreePath path)
if (path)
return e_tree_table_adapter_row_of_node(etsm->priv->etta, path);
else
- return 0;
+ return -1;
}
static int
@@ -389,8 +389,12 @@ etsm_sorted_pre_change (ETreeModel *etm, ETreeSelectionModel *etsm)
static void
etsm_sorted_node_changed (ETreeModel *etm, ETreePath node, ETreeSelectionModel *etsm)
{
+ int cursor_row = etsm_cursor_row_real (etsm);
e_selection_model_selection_changed(E_SELECTION_MODEL(etsm));
- e_selection_model_cursor_changed(E_SELECTION_MODEL(etsm), etsm_cursor_row_real(etsm), etsm->priv->cursor_col);
+ if (cursor_row != -1)
+ e_selection_model_cursor_changed(E_SELECTION_MODEL(etsm), cursor_row, etsm->priv->cursor_col);
+ else
+ e_selection_model_cursor_changed(E_SELECTION_MODEL(etsm), -1, -1);
}
static void