comparison src/collect-io.c @ 783:d6a7fb4b8e7c

replaced directory path with FileData* dir_fd
author nadvornik
date Tue, 03 Jun 2008 19:44:19 +0000
parents 44128da39e13
children 278962ba162a
comparison
equal deleted inserted replaced
782:3f7a0420c293 783:d6a7fb4b8e7c
666 static void collect_manager_refresh(void) 666 static void collect_manager_refresh(void)
667 { 667 {
668 GList *list; 668 GList *list;
669 GList *work; 669 GList *work;
670 gchar *base; 670 gchar *base;
671 FileData *dir_fd;
671 672
672 base = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL); 673 base = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL);
673 filelist_read(base, &list, NULL); 674 dir_fd = file_data_new_simple(base);
675 filelist_read(dir_fd, &list, NULL);
676 file_data_unref(dir_fd);
674 g_free(base); 677 g_free(base);
675 678
676 work = collection_manager_entry_list; 679 work = collection_manager_entry_list;
677 while (work && list) 680 while (work && list)
678 { 681 {