summaryrefslogtreecommitdiff
path: root/libupower-glib/up-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'libupower-glib/up-client.c')
-rw-r--r--libupower-glib/up-client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 330c0ad..d92a407 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -274,7 +274,12 @@ up_client_notify_cb (GObject *gobject,
UpClient *client)
{
/* Proxy the notification from the D-Bus glue object
- * to the real one */
+ * to the real one, but only if the property exists
+ * for UpClient */
+ if (!g_object_class_find_property (G_OBJECT_GET_CLASS (client),
+ pspec->name))
+ return;
+
g_object_notify (G_OBJECT (client), pspec->name);
}