mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 12:10:15 +01:00
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.
(cherry picked from commit 357fd6ba82)
This commit is contained in:
parent
7c744c445b
commit
5458b36bfc
1 changed files with 2 additions and 8 deletions
|
|
@ -1233,12 +1233,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;
|
||||
|
|
@ -1335,7 +1329,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));
|
||||
|
||||
|
|
@ -1348,7 +1342,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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue