libnm-core: allow strict and relaxed error behavior for _nm_setting_new_from_dbus()
[NetworkManager.git] / libnm-core / nm-setting-ip-config.c
index d76179c..a69045b 100644 (file)
@@ -2464,17 +2464,22 @@ get_property (GObject *object, guint prop_id,
        }
 }
 
-static void
+static gboolean
 ip_gateway_set (NMSetting  *setting,
                 GVariant   *connection_dict,
                 const char *property,
-                GVariant   *value)
+                GVariant   *value,
+                NMSettingParseFlags parse_flags,
+                GError    **error)
 {
+       /* FIXME: properly handle errors */
+
        /* Don't set from 'gateway' if we're going to use the gateway in 'addresses' */
        if (_nm_setting_use_legacy_property (setting, connection_dict, "addresses", "gateway"))
-               return;
+               return TRUE;
 
        g_object_set (setting, property, g_variant_get_string (value, NULL), NULL);
+       return TRUE;
 }
 
 static void