From 4bcaff4cb5f65e9d965d3ed4d1fcacb626d36847 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 24 Apr 2020 08:46:31 +0200 Subject: [PATCH] dhcp: don't make mud-url property of NMDhcpClient readable We have this as a GObject property, so that it can be set at construct time (to be never modified afterwards). We don't need a readable GObject property, because there is a getter function that should be used instead. --- src/dhcp/nm-dhcp-client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c index 8e50a8f99f..1f6179a8da 100644 --- a/src/dhcp/nm-dhcp-client.c +++ b/src/dhcp/nm-dhcp-client.c @@ -980,9 +980,6 @@ get_property (GObject *object, guint prop_id, case PROP_HOSTNAME: g_value_set_string (value, priv->hostname); break; - case PROP_MUD_URL: - g_value_set_string (value, priv->mud_url); - break; case PROP_ROUTE_METRIC: g_value_set_uint (value, priv->route_metric); break; @@ -1211,7 +1208,7 @@ nm_dhcp_client_class_init (NMDhcpClientClass *client_class) obj_properties[PROP_MUD_URL] = g_param_spec_string (NM_DHCP_CLIENT_MUD_URL, "", "", NULL, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | + G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_properties[PROP_ROUTE_TABLE] =