[network-manager-openvpn/th/vpn-editor-split-bgo765732: 11/13] properties/trivial: move code around



commit 6f7a4e7f7ee421b464ab63daa4c0212ff0c6db8f
Author: Thomas Haller <thaller redhat com>
Date:   Thu Apr 28 20:54:44 2016 +0200

    properties/trivial: move code around

 properties/nm-openvpn.c |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/properties/nm-openvpn.c b/properties/nm-openvpn.c
index 67fff26..06a595d 100644
--- a/properties/nm-openvpn.c
+++ b/properties/nm-openvpn.c
@@ -59,6 +59,7 @@ typedef struct {
        gboolean new_connection;
 } OpenvpnEditorPrivate;
 
+/*****************************************************************************/
 
 #define COL_AUTH_NAME 0
 #define COL_AUTH_PAGE 1
@@ -476,6 +477,13 @@ is_new_func (const char *key, const char *value, gpointer user_data)
        *is_new = FALSE;
 }
 
+/*****************************************************************************/
+
+static void
+openvpn_editor_plugin_widget_init (OpenvpnEditor *plugin)
+{
+}
+
 NMVpnEditor *
 openvpn_editor_new (NMConnection *connection, GError **error)
 {
@@ -563,6 +571,14 @@ dispose (GObject *object)
 }
 
 static void
+openvpn_editor_plugin_widget_interface_init (NMVpnEditorInterface *iface_class)
+{
+       /* interface implementation */
+       iface_class->get_widget = get_widget;
+       iface_class->update_connection = update_connection;
+}
+
+static void
 openvpn_editor_plugin_widget_class_init (OpenvpnEditorClass *req_class)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (req_class);
@@ -572,16 +588,3 @@ openvpn_editor_plugin_widget_class_init (OpenvpnEditorClass *req_class)
        object_class->dispose = dispose;
 }
 
-static void
-openvpn_editor_plugin_widget_init (OpenvpnEditor *plugin)
-{
-}
-
-static void
-openvpn_editor_plugin_widget_interface_init (NMVpnEditorInterface *iface_class)
-{
-       /* interface implementation */
-       iface_class->get_widget = get_widget;
-       iface_class->update_connection = update_connection;
-}
-


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