mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
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:
parent
a99ac7ccd8
commit
f57679dd93
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue