[gnome-control-center] network: Fix crash creating a VPN
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix crash creating a VPN
- Date: Fri, 24 Jun 2016 15:26:23 +0000 (UTC)
commit 2a7b19202bfb017f1fdfe8f7e3c2f71d0f985093
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 13 16:56:27 2016 +0200
network: Fix crash creating a VPN
The listing of VPN plugins was done using the nm-glib API instead of the
new libnm 1.2 one.
https://bugzilla.gnome.org/show_bug.cgi?id=767614
.../connection-editor/net-connection-editor.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/connection-editor/net-connection-editor.c
b/panels/network/connection-editor/net-connection-editor.c
index 2945947..f0131b9 100644
--- a/panels/network/connection-editor/net-connection-editor.c
+++ b/panels/network/connection-editor/net-connection-editor.c
@@ -743,13 +743,14 @@ select_vpn_type (NetConnectionEditor *editor, GtkListBox *list)
/* Add the VPN types */
for (iter = vpn_plugins; iter; iter = iter->next) {
+ NMVpnEditorPlugin *plugin = nm_vpn_plugin_info_get_editor_plugin (iter->data);
char *name, *desc, *desc_markup, *service_name;
GtkStyleContext *context;
- g_object_get (iter->data,
- "name", &name,
- "desc", &desc,
- "service", &service_name,
+ g_object_get (plugin,
+ NM_VPN_EDITOR_PLUGIN_NAME, &name,
+ NM_VPN_EDITOR_PLUGIN_DESCRIPTION, &desc,
+ NM_VPN_EDITOR_PLUGIN_SERVICE, &service_name,
NULL);
desc_markup = g_markup_printf_escaped ("<span size='smaller'>%s</span>", desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]