mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 18:00:18 +01:00
exported-object: use @self variable instead of @object
This commit is contained in:
parent
6fb917178a
commit
b9c1868b45
1 changed files with 5 additions and 5 deletions
|
|
@ -850,7 +850,7 @@ static void
|
|||
nm_exported_object_notify (GObject *object, GParamSpec *pspec)
|
||||
{
|
||||
NMExportedObject *self = (NMExportedObject *) object;
|
||||
NMExportedObjectPrivate *priv = NM_EXPORTED_OBJECT_GET_PRIVATE (object);
|
||||
NMExportedObjectPrivate *priv = NM_EXPORTED_OBJECT_GET_PRIVATE (self);
|
||||
NMExportedObjectClassInfo *classinfo;
|
||||
GType type;
|
||||
const char *dbus_property_name = NULL;
|
||||
|
|
@ -867,7 +867,7 @@ nm_exported_object_notify (GObject *object, GParamSpec *pspec)
|
|||
if (priv->num_interfaces == 0)
|
||||
return;
|
||||
|
||||
for (type = G_OBJECT_TYPE (object); type; type = g_type_parent (type)) {
|
||||
for (type = G_OBJECT_TYPE (self); type; type = g_type_parent (type)) {
|
||||
classinfo = g_type_get_qdata (type, nm_exported_object_class_info_quark ());
|
||||
if (!classinfo)
|
||||
continue;
|
||||
|
|
@ -878,7 +878,7 @@ nm_exported_object_notify (GObject *object, GParamSpec *pspec)
|
|||
}
|
||||
if (!dbus_property_name) {
|
||||
nm_log_trace (LOGD_DBUS_PROPS, "properties-changed[%p]: ignoring notification for prop %s on type %s",
|
||||
object, pspec->name, G_OBJECT_TYPE_NAME (object));
|
||||
self, pspec->name, G_OBJECT_TYPE_NAME (self));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -898,7 +898,7 @@ nm_exported_object_notify (GObject *object, GParamSpec *pspec)
|
|||
|
||||
vtype_found:
|
||||
g_value_init (&value, pspec->value_type);
|
||||
g_object_get_property (G_OBJECT (object), pspec->name, &value);
|
||||
g_object_get_property ((GObject *) self, pspec->name, &value);
|
||||
value_variant = g_dbus_gvalue_to_gvariant (&value, vtype);
|
||||
g_value_unset (&value);
|
||||
|
||||
|
|
@ -952,7 +952,7 @@ vtype_found:
|
|||
nm_assert_not_reached ();
|
||||
|
||||
if (!priv->notify_idle_id)
|
||||
priv->notify_idle_id = g_idle_add (idle_emit_properties_changed, object);
|
||||
priv->notify_idle_id = g_idle_add (idle_emit_properties_changed, self);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue