aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service-dbus.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-14 13:32:24 -0600
committerTed Gould <ted@gould.cx>2011-01-14 13:32:24 -0600
commite7dd62a02e53fb7b36758c67b060f42a28c4efc6 (patch)
treed46091fcb4c98fc4f3071f2a9547b0f3ebcbba96 /src/messages-service-dbus.c
parent4ef2895a07690c2c4ffaa07ac426f85ef702584d (diff)
downloadayatana-indicator-messages-e7dd62a02e53fb7b36758c67b060f42a28c4efc6.tar.gz
ayatana-indicator-messages-e7dd62a02e53fb7b36758c67b060f42a28c4efc6.tar.bz2
ayatana-indicator-messages-e7dd62a02e53fb7b36758c67b060f42a28c4efc6.zip
Emitting signals for the connections
Diffstat (limited to 'src/messages-service-dbus.c')
-rw-r--r--src/messages-service-dbus.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index 44b35aa..6cc33e0 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -223,6 +223,16 @@ message_service_dbus_set_attention (MessageServiceDbus * self, gboolean attentio
if (attention != priv->dot) {
priv->dot = attention;
g_signal_emit(G_OBJECT(self), signals[ATTENTION_CHANGED], 0, priv->dot, TRUE);
+
+ if (priv->connection != NULL) {
+ g_dbus_connection_emit_signal(priv->connection,
+ NULL,
+ INDICATOR_MESSAGES_DBUS_SERVICE_OBJECT,
+ INDICATOR_MESSAGES_DBUS_SERVICE_INTERFACE,
+ "AttentionChanged",
+ g_variant_new("(b)", priv->dot),
+ NULL);
+ }
}
return;
}
@@ -235,6 +245,16 @@ message_service_dbus_set_icon (MessageServiceDbus * self, gboolean hidden)
if (hidden != priv->hidden) {
priv->hidden = hidden;
g_signal_emit(G_OBJECT(self), signals[ICON_CHANGED], 0, priv->hidden, TRUE);
+
+ if (priv->connection != NULL) {
+ g_dbus_connection_emit_signal(priv->connection,
+ NULL,
+ INDICATOR_MESSAGES_DBUS_SERVICE_OBJECT,
+ INDICATOR_MESSAGES_DBUS_SERVICE_INTERFACE,
+ "IconChanged",
+ g_variant_new("(b)", priv->hidden),
+ NULL);
+ }
}
return;
}