aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-one.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-08-09 11:14:48 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-08-09 11:14:48 +0800
commit5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5 (patch)
treeab0c51f586ee785fcf48cbe49c7e920fff09e914 /widgets/table/e-table-one.c
parentd256cde05d619eb53188d1ef582f5c53ebebf689 (diff)
downloadgsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar.gz
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar.bz2
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar.lz
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar.xz
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.tar.zst
gsoc2013-evolution-5e70f5f3dd2a1b34dcfc9fa4a7749d17762c9ea5.zip
Chain to the destroy handler in the parent class!
2001-08-08 Federico Mena Quintero <federico@ximian.com> * e-cell-pixbuf.c (pixbuf_destroy): Chain to the destroy handler in the parent class! * e-table-field-chooser.c (e_table_field_chooser_destroy): Likewise. Sigh. * e-table-one.c (one_destroy): Likewise. Double sigh. * e-tree-selection-model.c (etsm_destroy): Likewise. Triple sigh. svn path=/trunk/; revision=11811
Diffstat (limited to 'widgets/table/e-table-one.c')
-rw-r--r--widgets/table/e-table-one.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/table/e-table-one.c b/widgets/table/e-table-one.c
index eee4a916cb..78f6289f08 100644
--- a/widgets/table/e-table-one.c
+++ b/widgets/table/e-table-one.c
@@ -15,6 +15,8 @@
#define PARENT_TYPE e_table_model_get_type ()
+static ETableModelClass *parent_class = NULL;
+
static int
one_column_count (ETableModel *etm)
{
@@ -140,6 +142,9 @@ one_destroy (GtkObject *object)
}
g_free(one->data);
+
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
static void
@@ -147,6 +152,8 @@ e_table_one_class_init (GtkObjectClass *object_class)
{
ETableModelClass *model_class = (ETableModelClass *) object_class;
+ parent_class = gtk_type_class (E_TABLE_MODEL_TYPE);
+
model_class->column_count = one_column_count;
model_class->row_count = one_row_count;
model_class->value_at = one_value_at;