| 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 |
|