Commit a4b93a37 authored by Ell's avatar Ell

buffer: deprecate gegl_tile_backend_unlink_swap()

... in favor of gegl_buffer_swap_remove_file().

Adapt GeglTileBackendFileAsync to the change.

This should have been part of commit
b61f9015.
parent 1597e17d
......@@ -49,6 +49,7 @@
#include "gegl-tile-backend.h"
#include "gegl-tile-backend-file.h"
#include "gegl-buffer-index.h"
#include "gegl-buffer-swap.h"
#include "gegl-buffer-types.h"
#include "gegl-debug.h"
#include "gegl-buffer-config.h"
......@@ -968,7 +969,9 @@ gegl_tile_backend_file_finalize (GObject *object)
if (self->path)
{
gegl_tile_backend_unlink_swap (self->path);
if (gegl_buffer_swap_has_file (self->path))
gegl_buffer_swap_remove_file (self->path);
g_free (self->path);
}
......
......@@ -158,7 +158,11 @@ GType gegl_tile_backend_get_type (void) G_GNUC_CONST;
*
* For safety, this function will check that the swap file is in the swap
* directory before deletion but it won't perform any other check.
*
* Deprecated: 0.4.14: This function is not compatible with a dynamically-
* changing swap path. Use gegl_buffer_swap_remove_file() instead.
*/
G_DEPRECATED_FOR (gegl_buffer_swap_remove_file)
void gegl_tile_backend_unlink_swap (gchar *path);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment