Use G_SOURCE_CONTINUE/REMOVE internally

Now that we have these macros, we should use them.
This commit covers everything in glib/.
This commit is contained in:
Matthias Clasen 2012-01-25 08:53:05 -05:00
parent 12060df9f1
commit ef159af00f
6 changed files with 10 additions and 8 deletions

View File

@ -2358,7 +2358,7 @@ g_main_current_source (void)
* self->idle_id = 0;
* GDK_THREADS_LEAVE (<!-- -->);
*
* return FALSE;
* return G_SOURCE_REMOVE;
* }
*
* static void

View File

@ -219,7 +219,7 @@ call_func (gpointer data)
{
func (g_thread_self ());
return FALSE;
return G_SOURCE_REMOVE;
}
static gpointer

View File

@ -104,7 +104,7 @@ on_child_exited (GPid pid,
if (data->child_exited && data->stdout_done)
g_main_loop_quit (data->loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean

View File

@ -46,7 +46,7 @@ on_child_exited (GPid pid,
if (data->child_exited && data->stdout_done)
g_main_loop_quit (data->loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean

View File

@ -8,13 +8,15 @@ stop_waiting (gpointer data)
{
g_main_loop_quit (loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
function (gpointer data)
{
g_assert_not_reached ();
return G_SOURCE_REMOVE;
}
static void

View File

@ -71,7 +71,7 @@ on_sig_received (gpointer user_data)
GMainLoop *loop = user_data;
g_main_loop_quit (loop);
sig_received = TRUE;
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@ -80,7 +80,7 @@ sig_not_received (gpointer data)
GMainLoop *loop = data;
(void) loop;
g_error ("Timed out waiting for signal");
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@ -88,7 +88,7 @@ exit_mainloop (gpointer data)
{
GMainLoop *loop = data;
g_main_loop_quit (loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static void