Mercurial > geeqie
comparison src/utilops.c @ 783:d6a7fb4b8e7c
replaced directory path with FileData* dir_fd
author | nadvornik |
---|---|
date | Tue, 03 Jun 2008 19:44:19 +0000 |
parents | 44128da39e13 |
children | 16b3a5c8aedc |
comparison
equal
deleted
inserted
replaced
782:3f7a0420c293 | 783:d6a7fb4b8e7c |
---|---|
1437 file_util_dialog_run(ud); | 1437 file_util_dialog_run(ud); |
1438 } | 1438 } |
1439 | 1439 |
1440 | 1440 |
1441 /* FIXME: */ | 1441 /* FIXME: */ |
1442 void file_util_create_dir(const gchar *path, GtkWidget *parent) | 1442 void file_util_create_dir(FileData *dir_fd, GtkWidget *parent) |
1443 { | 1443 { |
1444 } | 1444 } |
1445 | 1445 |
1446 gint file_util_rename_dir(FileData *source_fd, const gchar *new_path, GtkWidget *parent) | 1446 gint file_util_rename_dir(FileData *source_fd, const gchar *new_path, GtkWidget *parent) |
1447 { | 1447 { |
1534 { | 1534 { |
1535 log_printf("folder recursion depth past %d, giving up\n", UTILITY_DELETE_MAX_DEPTH); | 1535 log_printf("folder recursion depth past %d, giving up\n", UTILITY_DELETE_MAX_DEPTH); |
1536 return file_data_ref(fd); | 1536 return file_data_ref(fd); |
1537 } | 1537 } |
1538 | 1538 |
1539 if (!filelist_read_lstat(fd->path, &flist, &dlist)) file_data_ref(fd); | 1539 if (!filelist_read_lstat(fd, &flist, &dlist)) file_data_ref(fd); |
1540 | 1540 |
1541 work = dlist; | 1541 work = dlist; |
1542 while (work && !fail) | 1542 while (work && !fail) |
1543 { | 1543 { |
1544 FileData *lfd; | 1544 FileData *lfd; |
1736 g_free(text); | 1736 g_free(text); |
1737 | 1737 |
1738 return; | 1738 return; |
1739 } | 1739 } |
1740 | 1740 |
1741 if (!filelist_read_lstat(fd->path, &flist, &dlist)) | 1741 if (!filelist_read_lstat(fd, &flist, &dlist)) |
1742 { | 1742 { |
1743 gchar *text; | 1743 gchar *text; |
1744 | 1744 |
1745 text = g_strdup_printf(_("Unable to list contents of folder %s"), fd->path); | 1745 text = g_strdup_printf(_("Unable to list contents of folder %s"), fd->path); |
1746 file_util_warning_dialog(_("Delete failed"), text, GTK_STOCK_DIALOG_ERROR, parent); | 1746 file_util_warning_dialog(_("Delete failed"), text, GTK_STOCK_DIALOG_ERROR, parent); |