mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
12060df9f1
commit
ef159af00f
@ -2358,7 +2358,7 @@ g_main_current_source (void)
|
||||
* self->idle_id = 0;
|
||||
* GDK_THREADS_LEAVE (<!-- -->);
|
||||
*
|
||||
* return FALSE;
|
||||
* return G_SOURCE_REMOVE;
|
||||
* }
|
||||
*
|
||||
* static void
|
||||
|
@ -219,7 +219,7 @@ call_func (gpointer data)
|
||||
{
|
||||
func (g_thread_self ());
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static gpointer
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user