mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gsignal: Add G_CONNECT_DEFAULT
This makes calls to g_signal_connect_data() and g_signal_connect_object() with default flags more self-documenting. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -756,7 +756,9 @@ g_subprocess_wait_async (GSubprocess *subprocess,
|
||||
* see the cancellation in the _finish().
|
||||
*/
|
||||
if (cancellable)
|
||||
g_signal_connect_object (cancellable, "cancelled", G_CALLBACK (g_subprocess_wait_cancelled), task, 0);
|
||||
g_signal_connect_object (cancellable, "cancelled",
|
||||
G_CALLBACK (g_subprocess_wait_cancelled),
|
||||
task, G_CONNECT_DEFAULT);
|
||||
|
||||
subprocess->pending_waits = g_slist_prepend (subprocess->pending_waits, task);
|
||||
task = NULL;
|
||||
|
Reference in New Issue
Block a user