[gnumeric] AutoFormat: Make sorting function public.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] AutoFormat: Make sorting function public.
- Date: Fri, 12 Jun 2009 13:37:13 -0400 (EDT)
commit aa60b650586bab37acaae44776f63b08de132125
Author: Morten Welinder <terra gnome org>
Date: Fri Jun 12 13:36:44 2009 -0400
AutoFormat: Make sorting function public.
src/dialogs/dialog-autoformat.c | 8 --------
src/file-autoft.c | 8 ++++++++
src/file-autoft.h | 2 ++
3 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/dialogs/dialog-autoformat.c b/src/dialogs/dialog-autoformat.c
index 66846fe..3829c98 100644
--- a/src/dialogs/dialog-autoformat.c
+++ b/src/dialogs/dialog-autoformat.c
@@ -506,14 +506,6 @@ setup_check_item (GladeXML *gui, AutoFormatState *state, char const *name)
return item;
}
-static int
-category_group_cmp (gconstpointer a, gconstpointer b)
-{
- FormatTemplateCategoryGroup const *group_a = a;
- FormatTemplateCategoryGroup const *group_b = b;
- return g_utf8_collate (_(group_a->name), _(group_b->name));
-}
-
static gboolean
cb_canvas_focus (GtkWidget *canvas, GtkDirectionType direction,
AutoFormatState *state)
diff --git a/src/file-autoft.c b/src/file-autoft.c
index 084721b..22a5dfc 100644
--- a/src/file-autoft.c
+++ b/src/file-autoft.c
@@ -264,3 +264,11 @@ category_group_get_templates_list (FormatTemplateCategoryGroup *category_group,
return g_slist_sort (templates, format_template_compare_name);
}
+
+int
+category_group_cmp (gconstpointer a, gconstpointer b)
+{
+ FormatTemplateCategoryGroup const *group_a = a;
+ FormatTemplateCategoryGroup const *group_b = b;
+ return g_utf8_collate (_(group_a->name), _(group_b->name));
+}
diff --git a/src/file-autoft.h b/src/file-autoft.h
index ba06747..5e20f77 100644
--- a/src/file-autoft.h
+++ b/src/file-autoft.h
@@ -13,6 +13,8 @@ GSList *category_group_get_templates_list (FormatTemplateCategoryGroup *categor
GList *category_group_list_get (void);
void category_group_list_free (GList *category_groups);
+int category_group_cmp (gconstpointer a, gconstpointer b);
+
G_END_DECLS
#endif /* _GNM_FILE_AUTOFT_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]