aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-selection-model-simple.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-27 04:42:15 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-27 04:42:15 +0800
commit5aab042fae43cb8cffe3c69c982f664643869031 (patch)
treeaaff618b25a52f1ada083eb8d115da474d795924 /widgets/misc/e-selection-model-simple.c
parent4b93e802d917ddc918af720c756df9de4b831d6d (diff)
downloadgsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar.gz
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar.bz2
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar.lz
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar.xz
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.tar.zst
gsoc2013-evolution-5aab042fae43cb8cffe3c69c982f664643869031.zip
Added util/e-bit-array.lo.
2001-03-26 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added util/e-bit-array.lo. * gal/util/Makefile.am: Added e-bit-array.c and e-bit-array.h. * gal/util/e-bit-array.c, gal/util/e-bit-array.h: New class containing the implementation of the bit array used in e-selection-model-array. * gal/widgets/e-selection-model-array.c, e-selection-model-array.h: Refactored the bit array implementation into a separate class. * gal/widgets/e-selection-model-simple.c: Changed how it clears the bit array of the ESelectionModelArray parent class. * gal/widgets/e-selection-model.h: Added code to make the declaration of EForeachFunc only get included once. svn path=/trunk/; revision=8955
Diffstat (limited to 'widgets/misc/e-selection-model-simple.c')
-rw-r--r--widgets/misc/e-selection-model-simple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/misc/e-selection-model-simple.c b/widgets/misc/e-selection-model-simple.c
index bb20aafaf6..80654e3097 100644
--- a/widgets/misc/e-selection-model-simple.c
+++ b/widgets/misc/e-selection-model-simple.c
@@ -60,9 +60,9 @@ e_selection_model_simple_set_row_count (ESelectionModelSimple *esms,
{
if (esms->row_count != row_count) {
ESelectionModelArray *esma = E_SELECTION_MODEL_ARRAY(esms);
- g_free(esma->selection);
- esma->selection = NULL;
- esma->row_count = -1;
+ if (esma->eba)
+ gtk_object_unref(GTK_OBJECT(esma->eba));
+ esma->eba = NULL;
}
esms->row_count = row_count;
}