From bc0d854e93fa0dd9ca596d1663f389f31f458439 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 3 Mar 2000 20:05:56 +0000 Subject: Removed some unused code. 2000-03-03 Christopher James Lahey * e-table.c: Removed some unused code. * e-table-header-item.c, e-table-header-item.h: Removed the unused normal_cursor variable and object. * e-table-col.c: Maintain a reference count in the contained ECell. svn path=/trunk/; revision=2024 --- widgets/table/e-table-col.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/table/e-table-col.c') diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c index e2e12caf63..457830843d 100644 --- a/widgets/table/e-table-col.c +++ b/widgets/table/e-table-col.c @@ -22,6 +22,8 @@ etc_destroy (GtkObject *object) { ETableCol *etc = E_TABLE_COL (object); + gtk_object_unref( GTK_OBJECT(etc->ecell) ); + if ( etc->is_pixbuf ) gdk_pixbuf_unref( etc->pixbuf ); else @@ -67,6 +69,8 @@ e_table_col_new (int col_idx, const char *text, int width, int min_width, etc->selected = 0; etc->resizeable = resizable; + gtk_object_ref(GTK_OBJECT(etc->ecell)); + return etc; } -- cgit v1.2.3