* src/util.c:
Sort font lists alphabetically.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/branches/glabels-2_2@724
f5e0f49d-192f-0410-a22d-
a8d8700d0965
+2008-01-01 Jim Evins <evins@snaught.com>
+
+ * src/util.c:
+ Sort font lists alphabetically.
+
2008-01-01 Jim Evins <evins@snaught.com>
* src/merge-evolution.c:
#include <gtk/gtkliststore.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtkcelllayout.h>
+#include <libglabels/str.h>
#define FRAC_EPSILON 0.00005
for ( i=0; i<n; i++ )
{
name = g_strdup (pango_font_family_get_name (families[i]));
- list = g_list_append (list, name);
+ list = g_list_insert_sorted (list, name,
+ (GCompareFunc)lgl_str_utf8_casecmp);
}
g_free (families);