diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-26 19:48:53 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-26 19:48:53 +0800 |
commit | b0ab0a15e0e0971dd276390a56e8ba36422dfa94 (patch) | |
tree | 13428633cd4a41363e1a0250b62b26663cf3f372 /widgets/table/e-table-config.c | |
parent | 15555e2bdb97cddf4ca9e14d52f50999f60ba38e (diff) | |
download | gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.gz gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.bz2 gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.lz gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.xz gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.zst gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.zip |
Document allow-grouping attribute.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* docs/etablexml.txt: Document allow-grouping attribute.
* tests/test-table-1.c (SPEC): Updated this to test the
allow_grouping=\"false\" attribute.
From gal/e-table/ChangeLog:
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (config_group_info_update,
config_fields_info_update): Added some checks for NULL labels
here.
* e-table-specification.c, e-table-specification.h: Added
allow_grouping field. Fixes Ximian bug #13412.
* e-table.c, e-table.h: Added allow_grouping field. Set this
field for the sort infos from state objects.
svn path=/trunk/; revision=14134
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r-- | widgets/table/e-table-config.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index b87859ef39..70621dc741 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -285,6 +285,9 @@ config_group_info_update (ETableConfig *config) GString *res; int count, i; + if (!e_table_sort_info_get_can_group (info)) + return; + count = e_table_sort_info_grouping_get_count (info); res = g_string_new (""); @@ -310,7 +313,7 @@ config_group_info_update (ETableConfig *config) } if (res->str [0] == 0) g_string_append (res, _("No grouping")); - + gtk_label_set_text (GTK_LABEL (config->group_label), res->str); g_string_free (res, TRUE); } @@ -322,6 +325,8 @@ config_fields_info_update (ETableConfig *config) GString *res = g_string_new (""); int i; + return; + for (i = 0; i < config->state->col_count; i++){ for (column = config->source_spec->columns; *column; column++){ @@ -403,13 +408,13 @@ do_sort_and_group_config_dialog (ETableConfig *config, gboolean is_sort) config_group_info_update (config); } -#if 0 -static GtkWidget * +GtkWidget *e_table_proxy_etable_new (void); + +GtkWidget * e_table_proxy_etable_new (void) { - return gtk_label_new ("Waiting for the ETable/ETree\nmerger to be commited"); + return gtk_label_new ("Field selection dialog not\nimplemented here yet."); } -#endif static void config_button_fields (GtkWidget *widget, ETableConfig *config) |