aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 09:20:34 -0500
committerTed Gould <ted@canonical.com>2009-08-26 09:20:34 -0500
commit4b1b97c765557715451b16aa9c409e1539050b9f (patch)
tree7b84abfd9437dfe673687472d1750ae3406ff484
parent9efbade0a88f7ebce9ceb8d06293b1d636d02672 (diff)
downloadayatana-indicator-messages-4b1b97c765557715451b16aa9c409e1539050b9f.tar.gz
ayatana-indicator-messages-4b1b97c765557715451b16aa9c409e1539050b9f.tar.bz2
ayatana-indicator-messages-4b1b97c765557715451b16aa9c409e1539050b9f.zip
Adding the basic set functions into the C files.
-rw-r--r--src/messages-service-dbus.c17
-rw-r--r--src/messages-service-dbus.h4
2 files changed, 19 insertions, 2 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index da91af5..8d0d5e7 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -112,3 +112,20 @@ _messages_service_server_icon_shown (MessageServiceDbus * self, gboolean * hidde
return TRUE;
}
+void
+message_server_dbus_set_attention (MessageServiceDbus * self, gboolean attention)
+{
+ MessageServiceDbusPrivate * priv = MESSAGE_SERVICE_DBUS_GET_PRIVATE(self);
+ /* Do signal */
+ priv->dot = attention;
+ return;
+}
+
+void
+message_server_dbus_set_icon (MessageServiceDbus * self, gboolean hidden)
+{
+ MessageServiceDbusPrivate * priv = MESSAGE_SERVICE_DBUS_GET_PRIVATE(self);
+ /* Do signal */
+ priv->hidden = hidden;
+ return;
+}
diff --git a/src/messages-service-dbus.h b/src/messages-service-dbus.h
index 26035b7..1075eb4 100644
--- a/src/messages-service-dbus.h
+++ b/src/messages-service-dbus.h
@@ -32,8 +32,8 @@ struct _MessageServiceDbus {
GType message_service_dbus_get_type (void);
MessageServiceDbus * message_service_dbus_new (void);
-void message_service_dbus_set_attention (gboolean attention);
-void message_service_dbus_set_icon (gboolean hidden);
+void message_server_dbus_set_attention (MessageServiceDbus * self, gboolean attention);
+void message_server_dbus_set_icon (MessageServiceDbus * self, gboolean hidden);
G_END_DECLS