aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 09:37:53 -0500
committerTed Gould <ted@canonical.com>2009-08-26 09:37:53 -0500
commit3e09c01a33e88d9789678adbdb57f1bfcbe44edd (patch)
treea8c3e8fb3b258fb04f31a5ce1bca6f2ab1438430 /src
parent964062bdeb9d3e9ca8db4bb0466440523c323f39 (diff)
downloadayatana-indicator-messages-3e09c01a33e88d9789678adbdb57f1bfcbe44edd.tar.gz
ayatana-indicator-messages-3e09c01a33e88d9789678adbdb57f1bfcbe44edd.tar.bz2
ayatana-indicator-messages-3e09c01a33e88d9789678adbdb57f1bfcbe44edd.zip
Okay, now we're signaling change.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service-dbus.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index 38f2894..108360b 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -142,7 +142,10 @@ message_server_dbus_set_attention (MessageServiceDbus * self, gboolean attention
{
MessageServiceDbusPrivate * priv = MESSAGE_SERVICE_DBUS_GET_PRIVATE(self);
/* Do signal */
- priv->dot = attention;
+ if (attention != priv->dot) {
+ priv->dot = attention;
+ g_signal_emit(G_OBJECT(self), signals[ATTENTION_CHANGED], 0, priv->dot, TRUE);
+ }
return;
}
@@ -151,6 +154,9 @@ message_server_dbus_set_icon (MessageServiceDbus * self, gboolean hidden)
{
MessageServiceDbusPrivate * priv = MESSAGE_SERVICE_DBUS_GET_PRIVATE(self);
/* Do signal */
- priv->hidden = hidden;
+ if (hidden != priv->hidden) {
+ priv->hidden = hidden;
+ g_signal_emit(G_OBJECT(self), signals[ICON_CHANGED], 0, priv->hidden, TRUE);
+ }
return;
}