[gnome-control-center/wip/benzea/ci: 14/28] network/net-vpn: Update VPN title when the connection is changed
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/ci: 14/28] network/net-vpn: Update VPN title when the connection is changed
- Date: Mon, 28 May 2018 22:14:48 +0000 (UTC)
commit 063aa88f99e73cb2ae987c0b5b27a5db3d5307ee
Author: Benjamin Berg <bberg redhat com>
Date: Thu May 24 18:13:40 2018 +0200
network/net-vpn: 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.
panels/network/net-vpn.c | 3 +++
1 file changed, 3 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]