[gnome-control-center] network: Don't show underlying device for VPN connections
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Don't show underlying device for VPN connections
- Date: Tue, 9 Sep 2014 15:07:40 +0000 (UTC)
commit dbd1a539f6d39b9d1f656d815ef9715778411a02
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 8 16:15:05 2014 +0200
network: Don't show underlying device for VPN connections
We don't need to see "tun0" with its IP address in there, separate
from the VPN configuration.
panels/network/cc-network-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index fe17718..01fe0a9 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -714,6 +714,9 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
/* Don't add the libvirtd bridge to the UI */
if (g_strrstr (udi, "/virbr0") != NULL)
goto out;
+ /* Don't add VPN devices either */
+ if (g_strrstr (udi, "/tun0") != NULL)
+ goto out;
type = nm_device_get_device_type (device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]