summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-05-24 18:13:40 +0200
committerBenjamin Berg <bberg@redhat.com>2018-05-29 15:10:45 +0200
commit61471f281813107fb0464e8c023f1cffa86f5731 (patch)
treefc62516ae6ed65aeb4b46f1a003167bbce334e80
parent37e4557a6985ba6752c2623f3cfa6d11305c13e6 (diff)
downloadgnome-control-center-61471f281813107fb0464e8c023f1cffa86f5731.tar.gz
network: Update VPN title when the connection is changed
When the connection is modified then the title might be changed. Call the UI update function to ensure that widgets are updated.
-rw-r--r--panels/network/net-vpn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index bf653bad3..920db0773 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -51,6 +51,8 @@ enum {
G_DEFINE_TYPE (NetVpn, net_vpn, NET_TYPE_OBJECT)
+static void nm_device_refresh_vpn_ui (NetVpn *vpn);
+
void
net_vpn_set_show_separator (NetVpn *self,
gboolean show_separator)
@@ -66,6 +68,7 @@ connection_changed_cb (NMConnection *connection,
NetVpn *vpn)
{
net_object_emit_changed (NET_OBJECT (vpn));
+ nm_device_refresh_vpn_ui (vpn);
}
static void