all: use nm_g_idle_add() instead of g_idle_add()

g_idle_add() is discouraged, because we shouldn't use guint source
IDs.
This commit is contained in:
Thomas Haller 2021-07-23 21:47:32 +02:00
parent a99ac7ccd8
commit f57679dd93
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
4 changed files with 4 additions and 4 deletions

View file

@ -458,7 +458,7 @@ _kc_invoke_callback(pid_t pid,
data->sync.success = success;
data->sync.child_status = child_status;
g_idle_add(_kc_invoke_callback_idle, data);
nm_g_idle_add(_kc_invoke_callback_idle, data);
}
/* nm_utils_kill_child_async:

View file

@ -262,7 +262,7 @@ private_server_closed_connection(GDBusConnection *conn,
/* Delay the close of connection to ensure that D-Bus signals
* are handled */
g_idle_add(close_connection_in_idle, info);
nm_g_idle_add(close_connection_in_idle, info);
}
static gboolean

View file

@ -178,7 +178,7 @@ nm_dbus_object_unexport_on_idle(gpointer /* (NMDBusObject *) */ self_take)
nm_shutdown_wait_obj_register_object(self, "unexport-dbus-obj-on-idle");
/* pass on ownership. */
g_idle_add(_unexport_on_idle_cb, g_steal_pointer(&self));
nm_g_idle_add(_unexport_on_idle_cb, g_steal_pointer(&self));
}
/*****************************************************************************/

View file

@ -283,7 +283,7 @@ main(int argc, char **argv)
startup_data.argc = argc;
startup_data.argv = argv;
g_idle_add(idle_run_subprogram, &startup_data);
nm_g_idle_add(idle_run_subprogram, &startup_data);
loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(loop);
g_main_loop_unref(loop);