aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-12-03 16:02:36 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-12-03 16:02:36 +0800
commit50006218b6fce73920132f43569f410e6d6c6ae4 (patch)
tree7fd9b0947b1393b157d6e7217d4819b78806a638 /widgets/table/e-table-col.c
parent2e132a09abe8303d10d25b80d1fe23e3b18c6a62 (diff)
downloadgsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.gz
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.bz2
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.lz
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.xz
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.zst
gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.zip
fixed api.
1999-12-02 Miguel de Icaza <miguel@gnu.org> * e-table-header.c (e_table_header_index): fixed api. 1999-12-01 Miguel de Icaza <miguel@gnu.org> * test-cols.c (multi_cols_test): Update to simplified API. * test-check.c (check_test): ditto * test-table.c (table_browser_test): ditto * e-table-simple.c (e_table_simple_class_init): Kill column_name method. * e-table-model.h: Kill column_name method. * e-table-col.c (e_table_col_new): Instead of using a column name, use a column index. svn path=/trunk/; revision=1459
Diffstat (limited to 'widgets/table/e-table-col.c')
-rw-r--r--widgets/table/e-table-col.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c
index cca7bd13d6..86392a9419 100644
--- a/widgets/table/e-table-col.c
+++ b/widgets/table/e-table-col.c
@@ -21,8 +21,6 @@ etc_destroy (GtkObject *object)
{
ETableCol *etc = E_TABLE_COL (object);
- printf ("Destroying columns: %s %s\n", etc->id, etc->text);
- g_free (etc->id);
g_free (etc->text);
(*parent_class->destroy)(object);
@@ -38,12 +36,11 @@ e_table_col_class_init (GtkObjectClass *object_class)
E_MAKE_TYPE(e_table_col, "ETableCol", ETableCol, e_table_col_class_init, NULL, PARENT_TYPE);
ETableCol *
-e_table_col_new (const char *id, const char *text, int width, int min_width,
+e_table_col_new (int col_idx, const char *text, int width, int min_width,
ECell *ecell, GCompareFunc compare, gboolean resizable)
{
ETableCol *etc;
- g_return_val_if_fail (id != NULL, NULL);
g_return_val_if_fail (width >= 0, NULL);
g_return_val_if_fail (min_width >= 0, NULL);
g_return_val_if_fail (width >= min_width, NULL);
@@ -51,7 +48,7 @@ e_table_col_new (const char *id, const char *text, int width, int min_width,
etc = gtk_type_new (E_TABLE_COL_TYPE);
- etc->id = g_strdup (id);
+ etc->col_idx = col_idx;
etc->text = g_strdup (text);
etc->width = width;
etc->min_width = min_width;