g_push/pop_current_cancellable -> g_cancellable_push/pop_current

2007-12-13  Alexander Larsson  <alexl@redhat.com>

        * gcancellable.[ch]:
        * gio.symbols:
        * gbufferedinputstream.c:
        * gfileenumerator.c:
        * gfileinputstream.c:
        * gfileoutputstream.c:
        * ginputstream.c:
        * gioscheduler.c:
        * goutputstream.c:
	g_push/pop_current_cancellable ->
	g_cancellable_push/pop_current


svn path=/trunk/; revision=6115
This commit is contained in:
Alexander Larsson
2007-12-13 16:48:06 +00:00
committed by Alexander Larsson
parent f6b9b4f45e
commit 2ae689e31f
11 changed files with 58 additions and 44 deletions

View File

@@ -144,7 +144,7 @@ g_file_output_stream_query_info (GFileOutputStream *stream,
info = NULL;
if (cancellable)
g_push_current_cancellable (cancellable);
g_cancellable_push_current (cancellable);
class = G_FILE_OUTPUT_STREAM_GET_CLASS (stream);
if (class->query_info)
@@ -154,7 +154,7 @@ g_file_output_stream_query_info (GFileOutputStream *stream,
_("Stream doesn't support query_info"));
if (cancellable)
g_pop_current_cancellable (cancellable);
g_cancellable_pop_current (cancellable);
g_output_stream_clear_pending (output_stream);
@@ -400,12 +400,12 @@ g_file_output_stream_seek (GFileOutputStream *stream,
return FALSE;
if (cancellable)
g_push_current_cancellable (cancellable);
g_cancellable_push_current (cancellable);
res = class->seek (stream, offset, type, cancellable, error);
if (cancellable)
g_pop_current_cancellable (cancellable);
g_cancellable_pop_current (cancellable);
g_output_stream_clear_pending (output_stream);
@@ -495,12 +495,12 @@ g_file_output_stream_truncate (GFileOutputStream *stream,
return FALSE;
if (cancellable)
g_push_current_cancellable (cancellable);
g_cancellable_push_current (cancellable);
res = class->truncate_fn (stream, size, cancellable, error);
if (cancellable)
g_pop_current_cancellable (cancellable);
g_cancellable_pop_current (cancellable);
g_output_stream_clear_pending (output_stream);