diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-04-06 16:00:35 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-04-06 16:00:35 +0800 |
commit | fe016cce581d311c97652e08fbd7bfcb4042bbe4 (patch) | |
tree | 8868c23051b29368e66a0801f819066dd02bcfa4 /widgets/e-table/e-table-group.c | |
parent | ed50119936e0f078a21ea35e6bbe15b503063574 (diff) | |
download | gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar.gz gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar.bz2 gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar.lz gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar.xz gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.tar.zst gsoc2013-evolution-fe016cce581d311c97652e08fbd7bfcb4042bbe4.zip |
Got rid of some warnings.
2000-04-06 Christopher James Lahey <clahey@helixcode.com>
* test-cols.c, test-table.c: Got rid of some warnings.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-header-item.c, e-table-header-item.h,
e-table-sort-info.c, e-table-sort-info.h,
e-table-sorted-variable.c, e-table-sorted-variable.h, e-table.c,
e-table.h: Changed ETableSortInfo to not use xml internally.
svn path=/trunk/; revision=2305
Diffstat (limited to 'widgets/e-table/e-table-group.c')
-rw-r--r-- | widgets/e-table/e-table-group.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/widgets/e-table/e-table-group.c b/widgets/e-table/e-table-group.c index 9d4b899dc2..a829d83546 100644 --- a/widgets/e-table/e-table-group.c +++ b/widgets/e-table/e-table-group.c @@ -15,9 +15,7 @@ #include "e-table-group-leaf.h" #include "e-table-item.h" #include <libgnomeui/gnome-canvas-rect-ellipse.h> -#include <gnome-xml/parser.h> #include "e-util/e-util.h" -#include "e-util/e-xml-utils.h" #define TITLE_HEIGHT 16 #define GROUP_INDENT 10 @@ -84,24 +82,15 @@ e_table_group_new (GnomeCanvasGroup *parent, ETableHeader *full_header, ETableHeader *header, ETableModel *model, - xmlNode *rules) + ETableSortInfo *sort_info, + int n) { - int column; - int ascending; - g_return_val_if_fail (model != NULL, NULL); - - column = e_xml_get_integer_prop_by_name (rules, "column"); - ascending = e_xml_get_integer_prop_by_name (rules, "ascending"); - - if (rules && !xmlStrcmp(rules->name, "group")) { - ETableCol *col; - if (column > e_table_header_count (full_header)) - return e_table_group_leaf_new (parent, full_header, header, model, column, ascending); - col = e_table_header_get_columns (full_header)[column]; - return e_table_group_container_new (parent, full_header, header, model, col, ascending, rules->childs); + + if (n < e_table_sort_info_grouping_get_count(sort_info)) { + return e_table_group_container_new (parent, full_header, header, model, sort_info, n); } else { - return e_table_group_leaf_new (parent, full_header, header, model, column, ascending); + return e_table_group_leaf_new (parent, full_header, header, model, sort_info); } return NULL; } |