e G_SOURCE_CONTINUE/REMOVE internally

Now that we have these macros, we should use them.
This commit covers everything in gio/.
This commit is contained in:
Matthias Clasen
2012-01-25 14:18:34 -05:00
parent ef159af00f
commit 4e9f59bff8
10 changed files with 13 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ poll_source_callback (GPollableInputStream *in,
g_assert_cmpstr (buf, ==, "x");
*success = TRUE;
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@@ -55,7 +55,7 @@ check_source_readability_callback (gpointer user_data)
readable = g_pollable_input_stream_is_readable (in);
g_assert_cmpint (readable, ==, expected);
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@@ -71,7 +71,7 @@ write_callback (gpointer user_data)
check_source_readability_callback (GINT_TO_POINTER (TRUE));
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@@ -79,7 +79,7 @@ check_source_and_quit_callback (gpointer user_data)
{
check_source_readability_callback (user_data);
g_main_loop_quit (loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static void