From 5aeecf96a3a94057778fa28eb1a5374e8037bb61 Mon Sep 17 00:00:00 2001 From: vlad Date: Sun, 15 Aug 2010 08:19:52 +0300 Subject: [PATCH] trying to add sorting to Theme list --- applet/src/livewp-exthemes.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/applet/src/livewp-exthemes.c b/applet/src/livewp-exthemes.c index 958631f..be27781 100644 --- a/applet/src/livewp-exthemes.c +++ b/applet/src/livewp-exthemes.c @@ -50,6 +50,12 @@ parse_theme(gchar *file){ return hash; } +/*******************************************************************************/ +gint compar (gpointer a, gpointer b){ + return strcmp( (char*)a, (char*)b ); +} + + GSList * get_list_exthemes(void){ Dirent *dp; @@ -70,5 +76,6 @@ get_list_exthemes(void){ } closedir(dir_fd); } + store = g_slist_sort(store, compar); return store; } -- 1.7.9.5