Mon, 26 Mar 2007 03:58:42 +0000
merge of 'fa9915cd51dd246df4da0b69b8800a11a8bc0281'
and '71d668c3d56df7b83a6788dfc76dfb100cd3aeac'
--- a/finch/libgnt/gntfilesel.c Mon Mar 26 02:48:09 2007 +0000 +++ b/finch/libgnt/gntfilesel.c Mon Mar 26 03:58:42 2007 +0000 @@ -492,3 +492,27 @@ return list; } +void gnt_file_sel_set_multi_select(GntFileSel *sel, gboolean set) +{ + sel->multiselect = set; +} + +GList *gnt_file_sel_get_selected_multi_files(GntFileSel *sel) +{ + GList *list = NULL, *iter; + char *str = gnt_file_sel_get_selected_file(sel); + + for (iter = sel->tags; iter; iter = iter->next) { + list = g_list_prepend(list, g_strdup(iter->data)); + if (g_utf8_collate(str, iter->data)) { + g_free(str); + str = NULL; + } + } + if (str) + list = g_list_prepend(list, str); + list = g_list_reverse(list); + return list; +} + +