diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-26 00:10:17 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-26 00:10:17 +0800 |
commit | c6f76217ea749ec14609f9ce0718f57ae8749aec (patch) | |
tree | cab7e27d880f8e164e789f0567dc08e91eeb752b /widgets/table/e-tree-selection-model.c | |
parent | e420ccde448b6ad165c256bc088025288a51284f (diff) | |
download | gsoc2013-evolution-c6f76217ea749ec14609f9ce0718f57ae8749aec.tar.gz gsoc2013-evolution-c6f76217ea749ec14609f9ce0718f57ae8749aec.tar.zst gsoc2013-evolution-c6f76217ea749ec14609f9ce0718f57ae8749aec.zip |
Made this return -1 instead of -2 for not found if the root is not
2001-04-25 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (e_tree_table_adapter_row_of_node): Made
this return -1 instead of -2 for not found if the root is not
visible.
* e-tree-selection-model.c (etsm_row_foreach_cb): Made this accept
any negative number as not found instead of just -1.
svn path=/trunk/; revision=9562
Diffstat (limited to 'widgets/table/e-tree-selection-model.c')
-rw-r--r-- | widgets/table/e-tree-selection-model.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c index 6ae9f209a6..4c8a45c92d 100644 --- a/widgets/table/e-tree-selection-model.c +++ b/widgets/table/e-tree-selection-model.c @@ -750,7 +750,7 @@ etsm_row_foreach_cb (ETreePath path, gpointer user_data) { ModelAndCallback *mac = user_data; int row = etsm_row_of_node(mac->etsm, path); - if (row != -1) + if (row >= 0) mac->callback(row, mac->closure); } |