[gnome-control-center] network: Don't use refresh virtual method for VPN objects
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Don't use refresh virtual method for VPN objects
- Date: Tue, 5 Nov 2019 23:06:39 +0000 (UTC)
commit 2b3c6ea3e41e50c696cf71dafa4ddd716c131ece
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 24 11:06:17 2019 +1300
network: Don't use refresh virtual method for VPN objects
The refresh is only called internally
panels/network/net-vpn.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index bed7dacb0..bb07f67ab 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -139,13 +139,6 @@ nm_active_connections_changed (NetVpn *self)
nm_device_refresh_vpn_ui (self);
}
-static void
-vpn_proxy_refresh (NetObject *object)
-{
- NetVpn *self = NET_VPN (object);
- nm_device_refresh_vpn_ui (self);
-}
-
static void
device_off_toggled (NetVpn *self)
{
@@ -180,7 +173,7 @@ device_off_toggled (NetVpn *self)
static void
editor_done (NetVpn *self)
{
- net_object_refresh (NET_OBJECT (self));
+ nm_device_refresh_vpn_ui (self);
g_object_unref (self);
}
@@ -229,7 +222,6 @@ net_vpn_class_init (NetVpnClass *klass)
object_class->finalize = net_vpn_finalize;
parent_class->get_widget = vpn_proxy_get_widget;
- parent_class->refresh = vpn_proxy_refresh;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]