From cca1d258d390a6e945b2908539e2e73064a890d6 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 18 Jan 2001 06:47:07 +0000 Subject: New function. (update_sort_config_dialog): Massive update to this 2001-01-18 Miguel de Icaza * e-table-config.c (find_model_column_by_name): New function. (update_sort_config_dialog): Massive update to this function, it is almost complete now, it just needs a few cosmetic touchups. (config_sort_config_show): Get the main interaction working as well. (config_group_info_update): Beautify. (entry_changed): Do all the magic for the GUI for entries. (ascending_toggled): Implement callback. (configure_sort_dialog): Do also descending. (configure_sort_dialog): Hook up changed/toggled. * e-table-config.h: Put all the configuration stuff for sorting into its own structure to pass around funny functions. svn path=/trunk/; revision=7617 --- widgets/table/e-table-config.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'widgets/table/e-table-config.h') diff --git a/widgets/table/e-table-config.h b/widgets/table/e-table-config.h index fcf6eff9cc..06252ab2bc 100644 --- a/widgets/table/e-table-config.h +++ b/widgets/table/e-table-config.h @@ -13,6 +13,15 @@ #define E_IS_TABLE_CONFIG(o) (GTK_CHECK_TYPE ((o), E_TABLE_CONFIG_TYPE)) #define E_IS_TABLE_CONFIG_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_CONFIG_TYPE)) +typedef struct { + GtkComboText *combo; + GtkWidget *frames; + GtkWidget *radio_ascending; + GtkWidget *radio_descending; + guint changed_id, toggled_id; + void *e_table_config; +} ETableConfigSortWidgets; + typedef struct { GtkObject parent; @@ -27,15 +36,14 @@ typedef struct { /* * The state we manipulate */ - ETableSpecification *source_spec, *spec; - ETableState *source_state, *state; + ETableSpecification *source_spec, *spec, *temp_spec; + ETableState *source_state, *state, *temp_state; GtkWidget *sort_label; GtkWidget *group_label; GtkWidget *fields_label; - - GtkComboText *sort_combos [4]; - GtkWidget *frames [4]; + + ETableConfigSortWidgets sort [4]; } ETableConfig; typedef struct { -- cgit v1.2.3