[network-manager-applet/NMA_0_8] vpn: fix 0.9-ism that broke the compile



commit 6492429ad99e149cf0b79d1f6f8296be1c5ad7dc
Author: Dan Williams <dcbw redhat com>
Date:   Mon Oct 24 15:55:32 2011 -0500

    vpn: fix 0.9-ism that broke the compile

 src/applet-dialogs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index 0894daa..309ed52 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -633,11 +633,13 @@ info_dialog_add_page (GtkNotebook *notebook,
 static char *
 get_vpn_connection_type (NMConnection *connection)
 {
+	NMSettingVPN *s_vpn;
 	const char *type, *p;
 
 	/* The service type is in format of "org.freedesktop.NetworkManager.vpnc".
 	 * Extract end part after last dot, e.g. "vpnc" */
-	type = nm_setting_vpn_get_service_type (nm_connection_get_setting_vpn (connection));
+	s_vpn = (NMSettingVPN *) nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN);
+	type = nm_setting_vpn_get_service_type (s_vpn);
 	p = strrchr (type, '.');
 	return g_strdup (p ? p + 1 : type);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]