From 22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 21 Mar 2001 15:50:16 +0000 Subject: Make `ETableState' a non-`GTK_FLOATING' object. Otherwise the reference counts are messed up, and a segfault occurs when destroying the ETable widget. svn path=/trunk/; revision=8867 --- widgets/table/e-table-state.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets') diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c index 2d7fb3b3ac..0bb3f2e0a4 100644 --- a/widgets/table/e-table-state.c +++ b/widgets/table/e-table-state.c @@ -11,12 +11,14 @@ #include #include #include +#include #include #include #include "gal/util/e-util.h" #include "gal/util/e-xml-utils.h" #include "e-table-state.h" + #define PARENT_TYPE (gtk_object_get_type()) #define STATE_VERSION 0.1 @@ -46,6 +48,8 @@ etst_class_init (GtkObjectClass *klass) static void etst_init (ETableState *state) { + GTK_OBJECT_UNSET_FLAGS (GTK_OBJECT (state), GTK_FLOATING); + state->columns = NULL; state->expansions = NULL; state->sort_info = e_table_sort_info_new(); -- cgit v1.2.3