aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@ximian.com>2001-03-19 07:51:23 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2001-03-19 07:51:23 +0800
commit234f637779fa740ae50d1d12a76cde8cceff8fea (patch)
tree14138214d6e61c7e99400d8c3a3c6315fe933d8c /widgets/table/e-table-header-item.c
parent6c8afacd547e68b5db3395ffd21f568f682e2348 (diff)
downloadgsoc2013-evolution-234f637779fa740ae50d1d12a76cde8cceff8fea.tar.gz
gsoc2013-evolution-234f637779fa740ae50d1d12a76cde8cceff8fea.tar.zst
gsoc2013-evolution-234f637779fa740ae50d1d12a76cde8cceff8fea.zip
Use update_sort_and_group_config dialog instead of the non-implemented
2001-03-18 Miguel de Icaza <miguel@ximian.com> * e-table-config.c (sort_entry_changed): Use update_sort_and_group_config dialog instead of the non-implemented update_group_config_dialog. (update_sort_and_group_config_dialog): Update the text correctly. (sort_entry_changed): Handle empty string as not-in-set. (group_entry_changed): Handle empty string as not-in-set. (config_class_init): Fix the signal declaration for "changed", this was sending the wrong information. (update_sort_and_group_config_dialog): Use group_info here, not sort_info * e-table-header-item.c (ethi_popup_customize_view): Changed to use the "changed" signal in the ETableConfig instead of promiscously using the "apply" from the PropertyBox * e-table-config.glade: Set Hide On Close to yes for the Group-By dialog. The groups for Radio Buttons in the Glade file are global, which caused all sorts of strange behaviour and really hard to debug problems. This should be now fixed svn path=/trunk/; revision=8801
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 70bdb3d698..c3db9e7dfc 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1221,14 +1221,13 @@ config_destroyed (GtkObject *object, ETableHeaderItem *ethi)
}
static void
-apply_changes (GnomePropertyBox *pbox, gint page_num, ETableHeaderItem *ethi)
+apply_changes (ETableConfig *config, ETableHeaderItem *ethi)
{
- ETableConfig *config = E_TABLE_CONFIG (ethi->config);
char *state = e_table_state_save_to_string (config->state);
- if (page_num != -1)
- return;
-
+ printf ("This is the Table: %p %p\n", ethi->table, ethi);
+ printf ("This is the state: %s\n", state);
+
e_table_set_state (ethi->table, state);
g_free (state);
}
@@ -1239,6 +1238,7 @@ ethi_popup_customize_view(GtkWidget *widget, EthiHeaderInfo *info)
ETableHeaderItem *ethi = info->ethi;
ETableState *state;
+ printf ("___This is the Table: %p %p\n", ethi->table, ethi);
if (ethi->config)
e_table_config_raise (E_TABLE_CONFIG (ethi->config));
else {
@@ -1251,9 +1251,7 @@ ethi_popup_customize_view(GtkWidget *widget, EthiHeaderInfo *info)
GTK_OBJECT (ethi->config), "destroy",
GTK_SIGNAL_FUNC (config_destroyed), ethi);
gtk_signal_connect (
- GTK_OBJECT (
- E_TABLE_CONFIG (ethi->config)->dialog_toplevel),
- "apply",
+ GTK_OBJECT (ethi->config), "changed",
GTK_SIGNAL_FUNC (apply_changes), ethi);
}
}