Mercurial > pidgin
changeset 15926:9ac4e6b097d3
merge of 'af97194f292b3a82f2a36fc3094f579a3dfc2841'
and 'dd6621a28760010abfc3063bed6158b6fd6e73df'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 26 Mar 2007 03:58:42 +0000 |
parents | 5f9b7e2652f0 (diff) 5b065c7ff5cd (current diff) |
children | 846a00760176 |
files | finch/libgnt/gntfilesel.c finch/libgnt/gntfilesel.h pidgin/pixmaps/Makefile.am |
diffstat | 2 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c Mon Mar 26 01:55:33 2007 +0000 +++ b/finch/libgnt/gntfilesel.c Mon Mar 26 03:58:42 2007 +0000 @@ -492,4 +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; +} + +