diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-05-29 17:28:15 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-05-29 17:28:15 -0500 |
commit | ab87d8f8eaf75dda49dbd6e9ef56bf94dcf98e28 (patch) | |
tree | a94d9e94a2ccbf83f038a84c2d327fe680b0d494 /src | |
parent | 5786ecae0d9ecae7aaf2b19094474db54e53a691 (diff) | |
download | ayatana-indicator-power-ab87d8f8eaf75dda49dbd6e9ef56bf94dcf98e28.tar.gz ayatana-indicator-power-ab87d8f8eaf75dda49dbd6e9ef56bf94dcf98e28.tar.bz2 ayatana-indicator-power-ab87d8f8eaf75dda49dbd6e9ef56bf94dcf98e28.zip |
add a test to make sure that the listener responds to a PropertiesChanged signal
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus-listener.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dbus-listener.c b/src/dbus-listener.c index feaf78e..bc31ee3 100644 --- a/src/dbus-listener.c +++ b/src/dbus-listener.c @@ -127,6 +127,7 @@ get_devices_cb (GObject * source_object, GSList * devices = NULL; GVariant * devices_container; IndicatorPowerDbusListener * self = INDICATOR_POWER_DBUS_LISTENER (user_data); +g_message ("%s", G_STRLOC); /* build an array of IndicatorPowerDevices from the DBus response */ error = NULL; @@ -163,6 +164,7 @@ get_devices_cb (GObject * source_object, static void request_device_list (IndicatorPowerDbusListener * self) { +g_message ("calling GetDevices... self %p priv %p proxy %p", self, self->priv, self->priv->proxy); g_dbus_proxy_call (self->priv->proxy, "GetDevices", NULL, @@ -179,6 +181,8 @@ receive_properties_changed (GDBusProxy *proxy G_GNUC_UNUSED, GStrv invalidated_properties G_GNUC_UNUSED, gpointer user_data) { +g_message ("properties changed: %p %p %p %p", proxy, changed_properties, invalidated_properties, user_data); +g_message ("hey someone told me the properties changed"); request_device_list (INDICATOR_POWER_DBUS_LISTENER(user_data)); } @@ -200,6 +204,7 @@ service_proxy_cb (GObject *object, return; } +g_message ("registering for g-properties-changed callback"); /* we want to change the primary device changes */ g_signal_connect (priv->proxy, "g-properties-changed", |