mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
libnm-glib: ensure VpnStateChanged signals also notify VpnState property listeners
Both the VpnState property and the VpnStateChanged dbus signals update the NMVPNConnection's 'vpn-state' GObject property, so we should ensure that when either updates it due to a D-Bus event, GObject signals are sent out for both too.
This commit is contained in:
parent
a829c0439d
commit
55cb1b74ee
|
@ -136,6 +136,7 @@ vpn_state_changed_proxy (DBusGProxy *proxy,
|
|||
if (priv->vpn_state != vpn_state) {
|
||||
priv->vpn_state = vpn_state;
|
||||
g_signal_emit (connection, signals[VPN_STATE_CHANGED], 0, vpn_state, reason);
|
||||
g_object_notify (G_OBJECT (connection), NM_VPN_CONNECTION_VPN_STATE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue