mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-26 16:40:32 +01:00
glib-aux: rename nm_g_timeout_add_source_seconds() to nm_g_timeout_add_seconds_source()
There is g_idle_add(), g_timeout_add() and g_timeout_add_seconds(). We have alternatives nm_g_idle_add_source() and nm_g_timeout_add_source(). I find the previous name nm_g_timeout_add_source_seconds() inconsistent with the pattern, and get it always wrong on first try. Rename.
This commit is contained in:
parent
098a963e42
commit
dae5e01171
2 changed files with 2 additions and 2 deletions
|
|
@ -1783,7 +1783,7 @@ nm_g_timeout_add_source(guint timeout_msec, GSourceFunc func, gpointer user_data
|
|||
}
|
||||
|
||||
static inline GSource *
|
||||
nm_g_timeout_add_source_seconds(guint timeout_sec, GSourceFunc func, gpointer user_data)
|
||||
nm_g_timeout_add_seconds_source(guint timeout_sec, GSourceFunc func, gpointer user_data)
|
||||
{
|
||||
/* A convenience function to attach a new timeout source to the default GMainContext.
|
||||
* In that sense it's very similar to g_timeout_add_seconds() except that it returns a
|
||||
|
|
|
|||
|
|
@ -553,7 +553,7 @@ script_dispatch(ScriptInfo *script)
|
|||
|
||||
script->watch_source = nm_g_child_watch_add_source(script->pid, script_watch_cb, script);
|
||||
script->timeout_source =
|
||||
nm_g_timeout_add_source_seconds(SCRIPT_TIMEOUT, script_timeout_cb, script);
|
||||
nm_g_timeout_add_seconds_source(SCRIPT_TIMEOUT, script_timeout_cb, script);
|
||||
if (!script->wait)
|
||||
request->num_scripts_nowait++;
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue