aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 15:20:04 -0400
committerTed Gould <ted@canonical.com>2009-10-08 15:20:04 -0400
commitc152f3a0da6cbb83c699d0f26d5a411db3de1e37 (patch)
tree897954275d10cd906a799b4a3dd92956b023441f /src
parent7c7df5ba849f15cb2772a8370d02506e4fc5f91c (diff)
downloadayatana-indicator-session-c152f3a0da6cbb83c699d0f26d5a411db3de1e37.tar.gz
ayatana-indicator-session-c152f3a0da6cbb83c699d0f26d5a411db3de1e37.tar.bz2
ayatana-indicator-session-c152f3a0da6cbb83c699d0f26d5a411db3de1e37.zip
Checking the name we're getting and the name we're loosing.
Diffstat (limited to 'src')
-rw-r--r--src/status-provider-mc5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status-provider-mc5.c b/src/status-provider-mc5.c
index 46d5562..a904407 100644
--- a/src/status-provider-mc5.c
+++ b/src/status-provider-mc5.c
@@ -199,11 +199,11 @@ status_provider_mc5_finalize (GObject *object)
static void
dbus_namechange (DBusGProxy * proxy, const gchar * name, const gchar * prev, const gchar * new, StatusProviderMC5 * self)
{
- if (new != NULL && g_strcmp0(name, MC5_WELL_KNOWN_NAME) == 0) {
+ if (new != NULL && g_strcmp0(new, MC5_WELL_KNOWN_NAME) == 0) {
g_debug("MC5 Coming online");
build_eam(self);
}
- if (prev != NULL && g_strcmp0(name, MC5_WELL_KNOWN_NAME) == 0) {
+ if (prev != NULL && g_strcmp0(prev, MC5_WELL_KNOWN_NAME) == 0) {
g_debug("MC5 going offline");
StatusProviderMC5Private * priv = STATUS_PROVIDER_MC5_GET_PRIVATE(self);
if (priv->manager != NULL) {