From cff9059380f748309b628041b55abad159aab4d6 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 15 Jan 2001 07:34:27 +0000 Subject: Work on the ETableConfigurator. Pick up where Chris left. Work on the ETableConfigurator. Pick up where Chris left. A lot more changes to come in the short future. 2001-01-15 Miguel de Icaza * e-table-config.c (config_group_info_update): Simplify signature. (config_sort_info_update): Simplify signature. (config_fields_info_update): Implement. (e_table_config_construct): Hook up field change spec. * e-table-header-item.c (config_destroyed): Add new utility function. * e-table-config.c (config_group_info_update): Simpify routine by using g_string. Show a message if there is no grouping. * e-table-config.c: Made e-table-config dialog be a GnomePropertyBox. * e-table-header-item.c (ethi_popup_customize_view): Use the new api. * e-table-config.c (config_sort_info_update): Simplify this routine. Fix bug that was not showing "unsorted" state. (setup_gui): Load XML user interface here. (config_init): Use Glade instead of manually coded user interface. (e_table_config_raise): New api call. 2001-01-14 Miguel de Icaza * e-table-config.h: Change parent to be a GtkObject from GnomeDialog. svn path=/trunk/; revision=7495 --- widgets/table/e-table-header-item.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'widgets/table/e-table-header-item.c') diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index cbb236cca0..e67b83edb5 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -1185,6 +1185,12 @@ ethi_popup_format_columns(GtkWidget *widget, EthiHeaderInfo *info) { } +static void +config_destroyed (GtkObject *object, ETableHeaderItem *ethi) +{ + ethi->config = NULL; +} + static void ethi_popup_customize_view(GtkWidget *widget, EthiHeaderInfo *info) { @@ -1192,15 +1198,15 @@ ethi_popup_customize_view(GtkWidget *widget, EthiHeaderInfo *info) ETableState *state; if (ethi->config) - gdk_window_raise(GTK_WIDGET(ethi->config)->window); + e_table_config_raise (E_TABLE_CONFIG (ethi->config)); else { state = e_table_get_state_object(ethi->table); - ethi->config = e_table_config_new(ethi->table->spec, - state); - gtk_signal_connect(GTK_OBJECT(ethi->config), "clicked", - GTK_SIGNAL_FUNC(gnome_dialog_close), ethi); - gtk_widget_show(ethi->config); + ethi->config = e_table_config_new ( + _("Configuring view: FIXME"), + ethi->table->spec, state); + gtk_signal_connect (GTK_OBJECT (ethi->config), "destroy", + GTK_SIGNAL_FUNC (config_destroyed), ethi); } } -- cgit v1.2.3