mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 06:20:10 +01:00
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.
This commit is contained in:
parent
a058535b9d
commit
4bcaff4cb5
1 changed files with 1 additions and 4 deletions
|
|
@ -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] =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue