aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-23 13:55:20 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-23 13:55:20 +0800
commit51284ee84a6e135df27c957701bb6c580d5ecb73 (patch)
treecfca60d5d2867af645fe086b6bb74cd5ec04b153 /widgets/table/e-table.c
parent9c08224bb70a06686a8a67464bee5ea0b9204d73 (diff)
downloadgsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar.gz
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar.bz2
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar.lz
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar.xz
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.tar.zst
gsoc2013-evolution-51284ee84a6e135df27c957701bb6c580d5ecb73.zip
Destroy text and pixbuf if they exist whether or not is_pixbuf is set.
2000-12-23 Christopher James Lahey <clahey@helixcode.com> * e-table-col.c, e-table-col.h (etc_destroy): Destroy text and pixbuf if they exist whether or not is_pixbuf is set. (e_table_col_new_with_pixbuf): Make new_with_pixbuf take a title argument which is for when you can't display pixmaps. * e-table-column-specification.c (e_table_column_specification_load_from_node): Don't translate the pixbuf string attribute. * e-table-sort-info.c, e-table-sort-info.h (e_table_sort_info_load_from_node): Added a state_version parameter to the load_from_node function. This lets the loader specify which version of ETableState is being processed. If it's less than .05, use the old nested version. If it's greater, use the new flat version. (e_table_sort_info_save_to_node): Changed this to store a list of group and leaf nodes instead of nesting the group nodes and leaf nodes one inside the other. This is much easier to understand and requires less typing when creating a new ETableSpecification's initial ETableState. * e-table-state.c: Changed the state-version parameter to 0.1. (e_table_state_load_from_node): Use e_xml_get_double_prop_by_name_with_default so that we can specify a state-version default of 0.1 for people writing ETableStates by hand. Pass the state-version to e_table_sort_info_load_from_node. * e-table.c (et_col_spec_to_col): Pass the title from the ETableColumnSpecification to the ETableCol even if it's a pixbuf column. svn path=/trunk/; revision=7138
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 12a23bfdd7..5c7697c10a 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -660,7 +660,7 @@ et_col_spec_to_col (ETable *e_table, ETableColumnSpecification *col_spec, ETable
pixbuf = e_table_extras_get_pixbuf(ete, col_spec->pixbuf);
if (pixbuf) {
- col = e_table_col_new_with_pixbuf (col_spec->model_col, pixbuf,
+ col = e_table_col_new_with_pixbuf (col_spec->model_col, col_spec->title_, pixbuf,
col_spec->expansion, col_spec->minimum_width,
cell, compare, col_spec->resizable);
}