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
This commit is contained in:
parent
7d21e69d65
commit
2a7b19202b
1 changed files with 5 additions and 4 deletions
|
@ -743,13 +743,14 @@ select_vpn_type (NetConnectionEditor *editor, GtkListBox *list)
|
||||||
|
|
||||||
/* Add the VPN types */
|
/* Add the VPN types */
|
||||||
for (iter = vpn_plugins; iter; iter = iter->next) {
|
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;
|
char *name, *desc, *desc_markup, *service_name;
|
||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
|
|
||||||
g_object_get (iter->data,
|
g_object_get (plugin,
|
||||||
"name", &name,
|
NM_VPN_EDITOR_PLUGIN_NAME, &name,
|
||||||
"desc", &desc,
|
NM_VPN_EDITOR_PLUGIN_DESCRIPTION, &desc,
|
||||||
"service", &service_name,
|
NM_VPN_EDITOR_PLUGIN_SERVICE, &service_name,
|
||||||
NULL);
|
NULL);
|
||||||
desc_markup = g_markup_printf_escaped ("<span size='smaller'>%s</span>", desc);
|
desc_markup = g_markup_printf_escaped ("<span size='smaller'>%s</span>", desc);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue