Mercurial > pidgin
comparison finch/libgnt/gntfilesel.c @ 15927:846a00760176
use file select dialog
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 26 Mar 2007 04:06:15 +0000 |
parents | 9ac4e6b097d3 |
children | 0f1ab43db297 |
comparison
equal
deleted
inserted
replaced
15926:9ac4e6b097d3 | 15927:846a00760176 |
---|---|
490 list = g_list_prepend(list, str); | 490 list = g_list_prepend(list, str); |
491 list = g_list_reverse(list); | 491 list = g_list_reverse(list); |
492 return list; | 492 return list; |
493 } | 493 } |
494 | 494 |
495 void gnt_file_sel_set_multi_select(GntFileSel *sel, gboolean set) | |
496 { | |
497 sel->multiselect = set; | |
498 } | |
499 | |
500 GList *gnt_file_sel_get_selected_multi_files(GntFileSel *sel) | |
501 { | |
502 GList *list = NULL, *iter; | |
503 char *str = gnt_file_sel_get_selected_file(sel); | |
504 | |
505 for (iter = sel->tags; iter; iter = iter->next) { | |
506 list = g_list_prepend(list, g_strdup(iter->data)); | |
507 if (g_utf8_collate(str, iter->data)) { | |
508 g_free(str); | |
509 str = NULL; | |
510 } | |
511 } | |
512 if (str) | |
513 list = g_list_prepend(list, str); | |
514 list = g_list_reverse(list); | |
515 return list; | |
516 } | |
517 | |
518 |