diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-10-14 06:16:17 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-10-14 06:16:17 +0800 |
commit | 43b8acb68a9b2f949c85dd1a25f902fc4b7b0abe (patch) | |
tree | 231b8994ecce1d0a7b06ed03d71a08fad56079e5 /widgets/table/e-table-sort-info.c | |
parent | 2ee3d212f8b64a27f35270680cc307d062d342a1 (diff) | |
download | gsoc2013-evolution-43b8acb68a9b2f949c85dd1a25f902fc4b7b0abe.tar.gz gsoc2013-evolution-43b8acb68a9b2f949c85dd1a25f902fc4b7b0abe.tar.zst gsoc2013-evolution-43b8acb68a9b2f949c85dd1a25f902fc4b7b0abe.zip |
Fixed these to use the new ascending attribute as a boolean instead of an
2000-10-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
test-table.c: Fixed these to use the new ascending attribute as a
boolean instead of an int.
* e-table-sort-info.c: Changed the ascending attribute to a
boolean ("true"/"false") instead of an int (1/0).
svn path=/trunk/; revision=5903
Diffstat (limited to 'widgets/table/e-table-sort-info.c')
-rw-r--r-- | widgets/table/e-table-sort-info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index aebda2c207..bea5bde0eb 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -249,14 +249,14 @@ e_table_sort_info_load_from_node (ETableSortInfo *info, for (grouping = node->childs; grouping && !strcmp (grouping->name, "group"); grouping = grouping->childs) { ETableSortColumn column; column.column = e_xml_get_integer_prop_by_name (grouping, "column"); - column.ascending = e_xml_get_integer_prop_by_name (grouping, "ascending"); + column.ascending = e_xml_get_bool_prop_by_name (grouping, "ascending"); e_table_sort_info_grouping_set_nth(info, i++, column); } i = 0; for (; grouping && !strcmp (grouping->name, "leaf"); grouping = grouping->childs) { ETableSortColumn column; column.column = e_xml_get_integer_prop_by_name (grouping, "column"); - column.ascending = e_xml_get_integer_prop_by_name (grouping, "ascending"); + column.ascending = e_xml_get_bool_prop_by_name (grouping, "ascending"); e_table_sort_info_sorting_set_nth(info, i++, column); } } @@ -279,7 +279,7 @@ e_table_sort_info_save_to_node (ETableSortInfo *info, xmlNode *new_node = xmlNewChild(node, NULL, "group", NULL); e_xml_set_integer_prop_by_name (new_node, "column", column.column); - e_xml_set_integer_prop_by_name (new_node, "ascending", column.ascending); + e_xml_set_bool_prop_by_name (new_node, "ascending", column.ascending); node = new_node; } @@ -288,7 +288,7 @@ e_table_sort_info_save_to_node (ETableSortInfo *info, xmlNode *new_node = xmlNewChild(node, NULL, "leaf", NULL); e_xml_set_integer_prop_by_name (new_node, "column", column.column); - e_xml_set_integer_prop_by_name (new_node, "ascending", column.ascending); + e_xml_set_bool_prop_by_name (new_node, "ascending", column.ascending); node = new_node; } |