diff options
author | Thomas Haller <thaller@redhat.com> | 2017-06-15 21:16:42 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-06-19 17:20:34 +0200 |
commit | 18b5e8385f45d9ddfc8de609e32ea58c110febbe (patch) | |
tree | 22fd7cc992519e53d9dd9f7e098ecb63e8033b3e /libnm | |
parent | efb1e5b35c37fb8ff06d92028df1f9c8e323dfb1 (diff) |
libnm: remove property getter for NMObject's "dbus-object" and "dbus-object-manager"
These properties are internal and shall not be publicly accessible.
Remove the getter.
We may later no longer use GDBusObjectManager. It should be an implementation
detail, not exposed in the public API of NMObject.
Diffstat (limited to 'libnm')
-rw-r--r-- | libnm/nm-object.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c index b99efe370..ef3358627 100644 --- a/libnm/nm-object.c +++ b/libnm/nm-object.c @@ -1224,12 +1224,6 @@ get_property (GObject *object, guint prop_id, case PROP_DBUS_CONNECTION: g_value_set_object (value, g_dbus_object_manager_client_get_connection (G_DBUS_OBJECT_MANAGER_CLIENT (priv->object_manager))); break; - case PROP_DBUS_OBJECT: - g_value_set_object (value, priv->object); - break; - case PROP_DBUS_OBJECT_MANAGER: - g_value_set_object (value, priv->object_manager); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -1327,7 +1321,7 @@ nm_object_class_init (NMObjectClass *nm_object_class) (object_class, PROP_DBUS_OBJECT, g_param_spec_object (NM_OBJECT_DBUS_OBJECT, "", "", G_TYPE_DBUS_OBJECT, - G_PARAM_READWRITE | + G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -1340,7 +1334,7 @@ nm_object_class_init (NMObjectClass *nm_object_class) (object_class, PROP_DBUS_OBJECT_MANAGER, g_param_spec_object (NM_OBJECT_DBUS_OBJECT_MANAGER, "", "", G_TYPE_DBUS_OBJECT_MANAGER, - G_PARAM_READWRITE | + G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } |