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
This commit is contained in:
committed by
Federico Mena Quintero
parent
d256cde05d
commit
5e70f5f3dd
@ -176,7 +176,8 @@ pixbuf_max_width (ECellView *ecell_view, int model_col, int view_col)
|
||||
static void
|
||||
pixbuf_destroy (GtkObject *object)
|
||||
{
|
||||
/* ... */
|
||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -187,6 +187,9 @@ e_table_field_chooser_destroy (GtkObject *object)
|
||||
|
||||
if (etfc->gui)
|
||||
gtk_object_unref(GTK_OBJECT(etfc->gui));
|
||||
|
||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -591,6 +591,9 @@ etsm_destroy (GtkObject *object)
|
||||
|
||||
g_free(etsm->priv);
|
||||
etsm->priv = NULL;
|
||||
|
||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user