diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-11 04:49:24 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-11 04:49:24 +0800 |
commit | 1580b0527cab9b93c15a899dd83031ee65fc64d2 (patch) | |
tree | ff9f876c3028b9d18e0ef916bb561550c7767b86 /widgets/table/e-table-sort-info.h | |
parent | acdfbcd161c23f9b5b043e3dd6829e5dbd48a2f0 (diff) | |
download | gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar.gz gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar.bz2 gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar.lz gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar.xz gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.tar.zst gsoc2013-evolution-1580b0527cab9b93c15a899dd83031ee65fc64d2.zip |
If the sort_info can't group, hide the grouping button and label.
2001-08-10 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c (setup_gui): If the sort_info can't group, hide
the grouping button and label.
* e-table-header-item.c (ethi_header_context_menu): Removed the
Group By This Field menu item if the sort_info doesn't support
grouping.
* e-table-sort-info.c, e-table-sort-info.h
(e_table_sort_info_get_can_group,
e_table_sort_info_set_can_group): Added these functions.
* e-tree.c (e_tree_set_state_object, et_real_construct): Set
can_group to FALSE for all our sort infos.
(e_tree_get_state_object): Fixed a potential gtk_object_ref (NULL)
here.
svn path=/trunk/; revision=11896
Diffstat (limited to 'widgets/table/e-table-sort-info.h')
-rw-r--r-- | widgets/table/e-table-sort-info.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/table/e-table-sort-info.h b/widgets/table/e-table-sort-info.h index a2cd4f43a0..09a2b16d4b 100644 --- a/widgets/table/e-table-sort-info.h +++ b/widgets/table/e-table-sort-info.h @@ -33,6 +33,8 @@ typedef struct { guint frozen : 1; guint sort_info_changed : 1; guint group_info_changed : 1; + + guint can_group : 1; } ETableSortInfo; typedef struct { @@ -75,6 +77,9 @@ void e_table_sort_info_load_from_node (ETableSortInfo *info, xmlNode *e_table_sort_info_save_to_node (ETableSortInfo *info, xmlNode *parent); ETableSortInfo *e_table_sort_info_duplicate (ETableSortInfo *info); +void e_table_sort_info_set_can_group (ETableSortInfo *info, + gboolean can_group); +gboolean e_table_sort_info_get_can_group (ETableSortInfo *info); #ifdef __cplusplus } |