From 5aab042fae43cb8cffe3c69c982f664643869031 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 26 Mar 2001 20:42:15 +0000 Subject: Added util/e-bit-array.lo. 2001-03-26 Christopher James Lahey * 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 --- widgets/misc/e-selection-model-simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/misc/e-selection-model-simple.c') 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; } -- cgit v1.2.3