aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-cell-pixbuf.c3
-rw-r--r--widgets/table/e-table-field-chooser.c3
-rw-r--r--widgets/table/e-table-one.c7
-rw-r--r--widgets/table/e-tree-selection-model.c3
4 files changed, 15 insertions, 1 deletions
diff --git a/widgets/table/e-cell-pixbuf.c b/widgets/table/e-cell-pixbuf.c
index 3014c45019..f2764199bd 100644
--- a/widgets/table/e-cell-pixbuf.c
+++ b/widgets/table/e-cell-pixbuf.c
@@ -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
diff --git a/widgets/table/e-table-field-chooser.c b/widgets/table/e-table-field-chooser.c
index 345883cb89..2f3562a8f3 100644
--- a/widgets/table/e-table-field-chooser.c
+++ b/widgets/table/e-table-field-chooser.c
@@ -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*
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;
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c
index 3c06515cc9..e359b9aa07 100644
--- a/widgets/table/e-tree-selection-model.c
+++ b/widgets/table/e-tree-selection-model.c
@@ -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