mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 05:28:07 +02:00
device: don't make NM_DEVICE_IP4_ADDRESS property writable
It's not necessary nor used.
This commit is contained in:
parent
b9f6283c80
commit
13059ff784
1 changed files with 1 additions and 4 deletions
|
|
@ -17288,9 +17288,6 @@ set_property (GObject *object, guint prop_id,
|
||||||
/* construct-only */
|
/* construct-only */
|
||||||
priv->firmware_version = g_value_dup_string (value);
|
priv->firmware_version = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
case PROP_IP4_ADDRESS:
|
|
||||||
priv->ip4_address = g_value_get_uint (value);
|
|
||||||
break;
|
|
||||||
case PROP_MANAGED:
|
case PROP_MANAGED:
|
||||||
if (nm_device_is_real (self)) {
|
if (nm_device_is_real (self)) {
|
||||||
gboolean managed;
|
gboolean managed;
|
||||||
|
|
@ -17752,7 +17749,7 @@ nm_device_class_init (NMDeviceClass *klass)
|
||||||
obj_properties[PROP_IP4_ADDRESS] =
|
obj_properties[PROP_IP4_ADDRESS] =
|
||||||
g_param_spec_uint (NM_DEVICE_IP4_ADDRESS, "", "",
|
g_param_spec_uint (NM_DEVICE_IP4_ADDRESS, "", "",
|
||||||
0, G_MAXUINT32, 0, /* FIXME */
|
0, G_MAXUINT32, 0, /* FIXME */
|
||||||
G_PARAM_READWRITE |
|
G_PARAM_READABLE |
|
||||||
G_PARAM_STATIC_STRINGS);
|
G_PARAM_STATIC_STRINGS);
|
||||||
obj_properties[PROP_IP4_CONFIG] =
|
obj_properties[PROP_IP4_CONFIG] =
|
||||||
g_param_spec_string (NM_DEVICE_IP4_CONFIG, "", "",
|
g_param_spec_string (NM_DEVICE_IP4_CONFIG, "", "",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue