Commit 5003e6ab authored by Morten Welinder's avatar Morten Welinder

String handling: use go-string better.

parent 5c874f05
2009-08-13 Morten Welinder <terra@gnome.org>
* src/func.c (func_def_cmp, function_category_compare): Take
advantage of go-string.
2009-08-13 Jean Brefort <jean.brefort@normalesup.org>
* src/gnm-plugin.c (plugin_service_function_group_read_xml): get "lang"
......
......@@ -92,7 +92,8 @@ func_def_cmp (gconstpointer a, gconstpointer b)
g_return_val_if_fail (fdb->name != NULL, 0);
if (fda->fn_group != NULL && fdb->fn_group != NULL) {
int res = strcmp (fda->fn_group->display_name->str, fdb->fn_group->display_name->str);
int res = go_string_cmp (fda->fn_group->display_name,
fdb->fn_group->display_name);
if (res != 0)
return res;
}
......@@ -536,8 +537,7 @@ function_category_compare (gconstpointer a, gconstpointer b)
GnmFuncGroup const *cat_a = a;
GnmFuncGroup const *cat_b = b;
return g_utf8_collate (cat_a->display_name->str,
cat_b->display_name->str);
return go_string_cmp (cat_a->display_name, cat_b->display_name);
}
GnmFuncGroup *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment