aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-21 23:50:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-21 23:50:16 +0800
commit22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e (patch)
tree2ef0e4a402798c29252d9724fb1400139921358e /widgets
parent0cf839a464d506c810806b77eccb56d63ea51086 (diff)
downloadgsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar
gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.gz
gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.bz2
gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.lz
gsoc2013-evolution-22d6bf67ab49a9440a4611fe6fcb501c40d4fa9e.tar.xz
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')
-rw-r--r--widgets/table/e-table-state.c4
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();