/*
* Geeqie
* (C) 2006 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2008 - 2012 The Geeqie Team
*
* Author: John Ellis
*
gint64 total = 0;
GList *list;
GList *work;
- gint sorted = FALSE;
- gint warned = FALSE;
+ gboolean sorted = FALSE;
+ gboolean warned = FALSE;
+ FileData *dir_fd;
- if (!filelist_read(options->file_ops.safe_delete_path, &list, NULL)) return 0;
+ dir_fd = file_data_new_dir(options->file_ops.safe_delete_path);
+ if (!filelist_read(dir_fd, &list, NULL))
+ {
+ file_data_unref(dir_fd);
+ return 0;
+ }
+ file_data_unref(dir_fd);
work = list;
while (work)
*gd = NULL;
}
-gint file_util_safe_unlink(const gchar *path)
+gboolean file_util_safe_unlink(const gchar *path)
{
static GenericDialog *gd = NULL;
gchar *result = NULL;
- gint success = TRUE;
+ gboolean success = TRUE;
if (!isfile(path)) return FALSE;
buf = g_strdup_printf(_("Safe delete: %s"), _("off"));
}
}
-
+
return buf;
}
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */