Add priority arg to Geary.Files.recursive_delete_async().

This commit is contained in:
Michael James Gratton 2018-06-17 13:58:33 +10:00
parent d24720db87
commit fa3b8fa53f
5 changed files with 51 additions and 26 deletions

View file

@ -144,12 +144,11 @@ CREATE TABLE MessageAttachmentTable (
this.db.close();
this.db = null;
Geary.Files.recursive_delete_async.begin(
this.tmp_dir,
null,
Files.recursive_delete_async.begin(
this.tmp_dir, GLib.Priority.DEFAULT, null,
(obj, res) => { async_complete(res); }
);
Geary.Files.recursive_delete_async.end(async_result());
Files.recursive_delete_async.end(async_result());
this.tmp_dir = null;
}

View file

@ -121,11 +121,11 @@ class Geary.ImapDB.DatabaseTest : TestCase {
// Need to close it again to stop the GC process running
db.close();
Geary.Files.recursive_delete_async.begin(
tmp_dir, null,
Files.recursive_delete_async.begin(
tmp_dir, GLib.Priority.DEFAULT, null,
(obj, res) => { async_complete(res); }
);
Geary.Files.recursive_delete_async.end(async_result());
Files.recursive_delete_async.end(async_result());
}