24#include <glib-object.h>
26#include "core/core-types.h"
28#include "xcf-private.h"
34xcf_seek_pos (XcfInfo *info,
41 if (fseek (info->fp, info->cp, SEEK_SET) == -1)
43 g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
44 _( "Could not seek in XCF file: %s"),
55xcf_seek_end (XcfInfo *info,
58 if (fseek (info->fp, 0, SEEK_END) == -1)
60 g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
61 _( "Could not seek in XCF file: %s"),
67 info->cp = ftell (info->fp);
69 if (fseek (info->fp, 0, SEEK_END) == -1)
71 g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
72 _( "Could not seek in XCF file: %s"),
|