aboutsummaryrefslogtreecommitdiff
path: root/src/notifications-interface.c
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-05-15 15:56:57 -0400
committerJason Conti <jason.conti@gmail.com>2011-05-15 15:56:57 -0400
commit1f999e7c50082eada4dac5ac8bb7ee51ac74661b (patch)
tree74debd5c6f9c6e3504dd7879d95155b946cc2863 /src/notifications-interface.c
parent2dcb5b7388ffe6a7fe82fdc1cf2dd0c42cc92ba6 (diff)
downloadayatana-indicator-notifications-1f999e7c50082eada4dac5ac8bb7ee51ac74661b.tar.gz
ayatana-indicator-notifications-1f999e7c50082eada4dac5ac8bb7ee51ac74661b.tar.bz2
ayatana-indicator-notifications-1f999e7c50082eada4dac5ac8bb7ee51ac74661b.zip
Update indicator icon to unread when a message is received, and to read when the menu is hidden.
Diffstat (limited to 'src/notifications-interface.c')
-rw-r--r--src/notifications-interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/notifications-interface.c b/src/notifications-interface.c
index 6326bf2..d130049 100644
--- a/src/notifications-interface.c
+++ b/src/notifications-interface.c
@@ -178,6 +178,12 @@ notifications_interface_finalize(GObject *object)
return;
}
+NotificationsInterface *
+notifications_interface_new()
+{
+ return NOTIFICATIONS_INTERFACE(g_object_new(NOTIFICATIONS_INTERFACE_TYPE, NULL));
+}
+
void
notifications_interface_message_added(NotificationsInterface *self)
{