From 7c164f12b9ae13cd2f7e068b1b8626701ab8390f Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Mon, 6 Mar 2000 09:38:42 +0000 Subject: More changes than a man can remember. The UI works now. svn path=/trunk/; revision=2074 --- camel/camel-stream-fs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'camel/camel-stream-fs.c') diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 16c5da2ba6..5f533dad8a 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -161,7 +161,6 @@ static void _set_bounds (CamelStreamFs *stream_fs, guint32 inf_bound, guint32 sup_bound) { - printf ("sup_bounds = %u\n", sup_bound); /* store the bounds */ stream_fs->inf_bound = inf_bound; stream_fs->sup_bound = sup_bound; @@ -529,12 +528,11 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy) - printf ("***** Seeking : real_offset=%d, whence=%d\n", real_offset, whence); return_position = lseek (stream_fs->fd, real_offset, whence) - stream_fs->inf_bound; - if (((CAMEL_SEEKABLE_STREAM (stream)->cur_pos + stream_fs->inf_bound) != return_position) && stream_fs->eof) + if (((CAMEL_SEEKABLE_STREAM (stream)->cur_pos) != return_position) && stream_fs->eof) stream_fs->eof = FALSE; - CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position - stream_fs->inf_bound; + CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position; return return_position; -- cgit v1.2.3