summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-06-15 21:16:42 +0200
committerThomas Haller <thaller@redhat.com>2017-06-15 21:24:40 +0200
commit69b08ea36c31c5d60002ba15e244570c8c5ced20 (patch)
tree2732419e557b88369e1bb8021de811fe267cb34d
parentf970df172d8e10b9b1b7938346e1a5266de98fa6 (diff)
downloadNetworkManager-th/libnm-dbus-object-async-rh1450075.tar.gz
libnm: remove property getter for NMObject's "dbus-object" and "dbus-object-manager"th/libnm-dbus-object-async-rh1450075
These properties are internal and shall not be publicly accessible. Remove the getter. We may very well ditch GDBusObjectManager altogether. It should be an implementation detail, and not exposed in the public API of NMObject.
-rw-r--r--libnm/nm-object.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c
index b99efe370b..ef3358627e 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));
}