aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-col.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-04 04:05:56 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-04 04:05:56 +0800
commitbc0d854e93fa0dd9ca596d1663f389f31f458439 (patch)
treea9b855266f141fb34af7cad8e717f38bff7a1d41 /widgets/e-table/e-table-col.c
parentece2d6be35fb3e16f39b00fe0f323acca81fb997 (diff)
downloadgsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar.gz
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar.bz2
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar.lz
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar.xz
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.tar.zst
gsoc2013-evolution-bc0d854e93fa0dd9ca596d1663f389f31f458439.zip
Removed some unused code.
2000-03-03 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/e-table/e-table-col.c')
-rw-r--r--widgets/e-table/e-table-col.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-col.c b/widgets/e-table/e-table-col.c
index e2e12caf63..457830843d 100644
--- a/widgets/e-table/e-table-col.c
+++ b/widgets/e-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;
}