[gnome-control-center] network: Fix VPN UI not showing up
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix VPN UI not showing up
- Date: Fri, 24 Jun 2016 15:26:28 +0000 (UTC)
commit 7adfaf1ed95fe87e9b086ce890aea152efcc5e44
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 13 18:36:41 2016 +0200
network: Fix VPN UI not showing up
The VPN editor API changed as well.
https://bugzilla.gnome.org/show_bug.cgi?id=767614
panels/network/connection-editor/ce-page-vpn.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/connection-editor/ce-page-vpn.c b/panels/network/connection-editor/ce-page-vpn.c
index 56cba07..533aa8b 100644
--- a/panels/network/connection-editor/ce-page-vpn.c
+++ b/panels/network/connection-editor/ce-page-vpn.c
@@ -94,7 +94,13 @@ load_vpn_plugin (CEPageVpn *page, NMConnection *connection)
CEPage *parent = CE_PAGE (page);
GtkWidget *ui_widget, *failure;
- ui_widget = GTK_WIDGET (nm_vpn_editor_get_widget (page->editor));
+ page->editor = nm_vpn_editor_plugin_get_editor (page->plugin,
+ connection,
+ NULL);
+ ui_widget = NULL;
+ if (page->editor)
+ ui_widget = GTK_WIDGET (nm_vpn_editor_get_widget (page->editor));
+
if (!ui_widget) {
g_clear_object (&page->editor);
page->plugin = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]