Commit 11b20cb7 authored by Christian Kellner's avatar Christian Kellner
Browse files

device: explicitly set "stored" property

If the "store" property is changed, we also explicitly set the
"stored" property (although it is a transient property). This is
needed because the BoltDBusManagerSkeleton object created by
gdbus-bindgen will cache properties and only sent out changes if
they are changed (according to its own cache); therefore we need
to update the cache.
parent 30b3fc89
......@@ -196,7 +196,7 @@ bolt_device_set_property (GObject *object,
{
case PROP_STORE:
dev->store = g_value_dup_object (value);
g_object_notify (object, "stored");
g_object_set (object, "stored", dev->store != NULL, NULL);
break;
case PROP_UID:
......@@ -243,6 +243,10 @@ bolt_device_set_property (GObject *object,
dev->security = g_value_get_uint (value);
break;
case PROP_STORED:
/* this is just here for the hack below :( */
break;
case PROP_POLICY:
dev->policy = g_value_get_uint (value);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment