diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-03-21 23:50:16 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-03-21 23:50:16 +0800 |
commit | 22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e (patch) | |
tree | 2ef0e4a402798c29252d9724fb1400139921358e /widgets/table/e-table-state.c | |
parent | 0cf839a464d506c810806b77eccb56d63ea51086 (diff) | |
download | gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.gz gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.zst gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.zip |
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
Diffstat (limited to 'widgets/table/e-table-state.c')
-rw-r--r-- | widgets/table/e-table-state.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <config.h> #include <stdlib.h> #include <gtk/gtksignal.h> +#include <gtk/gtkobject.h> #include <gnome-xml/parser.h> #include <gnome-xml/xmlmemory.h> #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(); |