summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-24 08:46:31 +0200
committerThomas Haller <thaller@redhat.com>2020-04-24 10:09:50 +0200
commit4bcaff4cb5f65e9d965d3ed4d1fcacb626d36847 (patch)
tree7caaa9b4e225854057a9d9313ffde49bc31ae212
parenta058535b9d6b30506e6ec78806155e1befd9a0fd (diff)
downloadNetworkManager-4bcaff4cb5f65e9d965d3ed4d1fcacb626d36847.tar.gz
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.
-rw-r--r--src/dhcp/nm-dhcp-client.c5
1 files changed, 1 insertions, 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] =