From 3c1ddb743e12aa5baa0e1fdab25eaddf4730b00d Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 26 Apr 2000 14:47:10 +0000 Subject: Add argument handling here. 2000-04-24 Miguel de Icaza * e-table.c (e_table_class_init): Add argument handling here. * e-table-group-leaf.c (e_table_group_apply_to_leafs): New method. Enables us to walk all the children of an ETableGroup. * e-table.c (et_get_arg, et_set_arg): Implement ::get and ::set methods. (e_table_construct_from_spec_file): Now we return the etable. (e_table_construct): ditto. (et_real_construct): Now we return the ETable. Returns NULL on construct failure. (e_table_new): ditto. (e_table_new_from_spec_file): ditto. * (et_build_grouping_spec): Removed vestige code that still contained references to the etable->specification XML code. Dumped all the ifdefed out code. * e-table.h: Removed ETable->specification finally. svn path=/trunk/; revision=2632 --- widgets/table/e-table.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'widgets/table/e-table.h') diff --git a/widgets/table/e-table.h b/widgets/table/e-table.h index d8c4709621..61fc5a41ae 100644 --- a/widgets/table/e-table.h +++ b/widgets/table/e-table.h @@ -40,17 +40,18 @@ typedef struct { GnomeCanvasItem *header_item, *root; - xmlDoc *specification; - - guint draw_grid:1; - guint draw_focus:1; - guint spreadsheet:1; - guint need_rebuild:1; guint need_row_changes:1; GHashTable *row_changes_list; gint rebuild_idle_id; + + /* + * Configuration settings + */ + guint draw_grid:1; + guint draw_focus:1; + guint spreadsheet:1; } ETable; typedef struct { @@ -59,19 +60,21 @@ typedef struct { void (*row_selection) (ETable *et, int row, gboolean selected); } ETableClass; -GtkType e_table_get_type (void); -void e_table_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm, - const char *spec); -GtkWidget *e_table_new (ETableHeader *full_header, ETableModel *etm, - const char *spec); +GtkType e_table_get_type (void); -void e_table_construct_from_spec_file (ETable *e_table, +ETable *e_table_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm, + const char *spec); +GtkWidget *e_table_new (ETableHeader *full_header, ETableModel *etm, + const char *spec); + +ETable *e_table_construct_from_spec_file (ETable *e_table, ETableHeader *full_header, ETableModel *etm, const char *filename); GtkWidget *e_table_new_from_spec_file (ETableHeader *full_header, ETableModel *etm, const char *filename); + gchar *e_table_get_specification (ETable *e_table); void e_table_save_specification (ETable *e_table, gchar *filename); -- cgit