aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-selection-model-simple.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-12-18 07:09:54 +0800
committerChris Lahey <clahey@src.gnome.org>2001-12-18 07:09:54 +0800
commit98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0 (patch)
treea597a0534ce192fe854b6eaaaeb634ca59bd7d32 /widgets/misc/e-selection-model-simple.c
parentd39ecffd6d964357c55bd6cebc2cc4bb9fd4f547 (diff)
downloadgsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar.gz
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar.bz2
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar.lz
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar.xz
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.tar.zst
gsoc2013-evolution-98a2c856275ec6b1f9ce60449e7b124a1dd7e7f0.zip
Merging changes:
2001-12-17 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model-simple.c (e_selection_model_simple_set_row_count): Set esma->selected_row and esma->selected_range_end to -1 here. * gal/widgets/e-selection-model-array.c (e_selection_model_array_confirm_row_count): Set selected_row and selected_range_end to -1 here. (esma_select_single_row): Check that selected_row is within the range of possible rows. This should never happen, but this check will help if it does. svn path=/trunk/; revision=15142
Diffstat (limited to 'widgets/misc/e-selection-model-simple.c')
-rw-r--r--widgets/misc/e-selection-model-simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/misc/e-selection-model-simple.c b/widgets/misc/e-selection-model-simple.c
index b35ac7d497..0d87cdc779 100644
--- a/widgets/misc/e-selection-model-simple.c
+++ b/widgets/misc/e-selection-model-simple.c
@@ -77,6 +77,8 @@ e_selection_model_simple_set_row_count (ESelectionModelSimple *esms,
if (esma->eba)
gtk_object_unref(GTK_OBJECT(esma->eba));
esma->eba = NULL;
+ esma->selected_row = -1;
+ esma->selected_range_end = -1;
}
esms->row_count = row_count;
}