mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 04:30:16 +01:00
manager: fix implementation of NMManager's "startup-complete
Due to a bug, NMManager would connect to "notify::connections" and might miss an important notification when NMSettings declares startup-complete. Fixes:b067ca7034(cherry picked from commitc57e5a6b66)
This commit is contained in:
parent
a97ba456fe
commit
f4113b8b24
2 changed files with 8 additions and 1 deletions
|
|
@ -2473,6 +2473,13 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_STARTUP_COMPLETE,
|
||||
g_param_spec_boolean (NM_SETTINGS_STARTUP_COMPLETE, "", "",
|
||||
FALSE,
|
||||
G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/* signals */
|
||||
signals[CONNECTION_ADDED] =
|
||||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_ADDED,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#define NM_SETTINGS_HOSTNAME "hostname"
|
||||
#define NM_SETTINGS_CAN_MODIFY "can-modify"
|
||||
#define NM_SETTINGS_CONNECTIONS "connections"
|
||||
#define NM_SETTINGS_STARTUP_COMPLETE "connections"
|
||||
#define NM_SETTINGS_STARTUP_COMPLETE "startup-complete"
|
||||
|
||||
#define NM_SETTINGS_SIGNAL_CONNECTION_ADDED "connection-added"
|
||||
#define NM_SETTINGS_SIGNAL_CONNECTION_UPDATED "connection-updated"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue