aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-22 17:28:19 -0500
committerTed Gould <ted@canonical.com>2009-09-22 17:28:19 -0500
commit62fbd1f460c253a9a9770ec37a916dd2f55335dd (patch)
treeef40b26c7e0be8c79dd8bf64e8ddebf192de99ad /src
parent4b30518d4f8b96d95e004829e7a4ebed4b67930c (diff)
downloadayatana-indicator-session-62fbd1f460c253a9a9770ec37a916dd2f55335dd.tar.gz
ayatana-indicator-session-62fbd1f460c253a9a9770ec37a916dd2f55335dd.tar.bz2
ayatana-indicator-session-62fbd1f460c253a9a9770ec37a916dd2f55335dd.zip
If the global status changes then we need to signal everyone else about it.
Diffstat (limited to 'src')
-rw-r--r--src/status-provider-mc5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/status-provider-mc5.c b/src/status-provider-mc5.c
index 0251675..a9342a1 100644
--- a/src/status-provider-mc5.c
+++ b/src/status-provider-mc5.c
@@ -188,7 +188,10 @@ presence_changed (EmpathyAccountManager * eam, guint type, const gchar * type_st
g_debug("MC5 Status changed: %d %s %s", type, type_str, message);
- priv->status = tp_to_sp_map[type];
+ if (priv->status != tp_to_sp_map[type]) {
+ priv->status = tp_to_sp_map[type];
+ g_signal_emit(G_OBJECT(sp), STATUS_PROVIDER_SIGNAL_STATUS_CHANGED_ID, 0, priv->status, TRUE);
+ }
return;
}