diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-03-13 05:24:34 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-03-13 05:24:34 +0800 |
commit | d882e4e420f7d65301aded0e8b4082c666da2e5b (patch) | |
tree | 60e77289fc4125f3b31b9672e154b5d491f8507a /widgets/table/e-table-memory-store.c | |
parent | fff110978aa79dcde9654c8386eb828b1c752c63 (diff) | |
download | gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.gz gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.bz2 gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.lz gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.xz gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.tar.zst gsoc2013-evolution-d882e4e420f7d65301aded0e8b4082c666da2e5b.zip |
Give the correct height to the subcells instead of overlapping them.
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* e-cell-vbox.c (ecv_draw): Give the correct height to the
subcells instead of overlapping them.
* e-table-header.c, e-table-header.h (e_table_header_move,
eth_calc_widths): Emit the dimension_changed signal with the width
of the header.
* e-table-memory-store.c (duplicate_value, etms_free_value):
Handle NULL pixbufs here.
* e-table.c, e-table.h: Connect to the dimension_changed signal
and call set_header_width. Did a bit of refactoring here.
svn path=/trunk/; revision=16128
Diffstat (limited to 'widgets/table/e-table-memory-store.c')
-rw-r--r-- | widgets/table/e-table-memory-store.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-memory-store.c b/widgets/table/e-table-memory-store.c index d3485e1153..67c1292119 100644 --- a/widgets/table/e-table-memory-store.c +++ b/widgets/table/e-table-memory-store.c @@ -42,7 +42,8 @@ duplicate_value (ETableMemoryStore *etms, int col, const void *val) case E_TABLE_MEMORY_STORE_COLUMN_TYPE_STRING: return g_strdup (val); case E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF: - gdk_pixbuf_ref ((GdkPixbuf *) val); + if (val) + gdk_pixbuf_ref ((GdkPixbuf *) val); return (GdkPixbuf *) val; case E_TABLE_MEMORY_STORE_COLUMN_TYPE_CUSTOM: if (etms->priv->columns[col].custom.duplicate_value) @@ -107,7 +108,8 @@ etms_free_value (ETableModel *etm, int col, void *value) g_free (value); break; case E_TABLE_MEMORY_STORE_COLUMN_TYPE_PIXBUF: - gdk_pixbuf_unref (value); + if (value) + gdk_pixbuf_unref (value); break; case E_TABLE_MEMORY_STORE_COLUMN_TYPE_CUSTOM: if (etms->priv->columns[col].custom.free_value) |