mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
GDBus tests: Use G_SOURCE_REMOVE, G_SOURCE_CONTINUE
The meaning of the boolean result of a GSource function is clearer if we use these aliases. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
51a135a272
commit
500d065f3d
@@ -644,7 +644,7 @@ check_connection (gpointer user_data)
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@@ -654,7 +654,7 @@ on_do_disconnect_in_idle (gpointer data)
|
||||
g_debug ("GDC %p has ref_count %d", c, G_OBJECT (c)->ref_count);
|
||||
g_dbus_connection_disconnect (c);
|
||||
g_object_unref (c);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1794,7 +1794,7 @@ static gboolean
|
||||
codegen_quit_mainloop_timeout (gpointer data)
|
||||
{
|
||||
g_main_loop_quit (loop);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user