[NetworkManager-openvpn] editor: ensure NMACertChooser type is around



commit 8cde95234832f10acd8f6a7c375354e948ee53c1
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Oct 22 10:36:49 2018 +0200

    editor: ensure NMACertChooser type is around
    
    The widget classes templated with GtkBuilder don't load the types they
    require, leaving their users in despair and gloom:
    
      ** (run-vpn:1094459): CRITICAL **: 11:33:54.424: file
            properties/nm-openvpn-editor.c: line 2623
            (openvpn_editor_new): should not be reached
      Error: .:4:2076 Invalid object type 'NMACertChooser'
    
    Drag this one in manually.
    
    https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/merge_requests/11

 properties/nm-openvpn-editor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/properties/nm-openvpn-editor.c b/properties/nm-openvpn-editor.c
index 5c409b4..870c6de 100644
--- a/properties/nm-openvpn-editor.c
+++ b/properties/nm-openvpn-editor.c
@@ -2696,6 +2696,7 @@ nm_vpn_editor_factory_openvpn (NMVpnEditorPlugin *editor_plugin,
                                NMConnection *connection,
                                GError **error)
 {
+       g_type_ensure (NMA_TYPE_CERT_CHOOSER);
        return openvpn_editor_new (connection, error);
 }
 #endif


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