aboutsummaryrefslogtreecommitdiff
path: root/src/notifications-service.c
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-05-17 16:49:45 -0400
committerJason Conti <jason.conti@gmail.com>2011-05-17 16:49:45 -0400
commit344eaf62015d77d1cd6885bda807a2e8fcb16b3b (patch)
tree75916781500632364254f39c3a2dfddbbbfd69ec /src/notifications-service.c
parent425bde705a072effe6232cb3fa4fecdcb8849639 (diff)
downloadayatana-indicator-notifications-344eaf62015d77d1cd6885bda807a2e8fcb16b3b.tar.gz
ayatana-indicator-notifications-344eaf62015d77d1cd6885bda807a2e8fcb16b3b.tar.bz2
ayatana-indicator-notifications-344eaf62015d77d1cd6885bda807a2e8fcb16b3b.zip
Checking for, and discarding volume notifications, since they contain no useful information (which is stupid, why can't they provide a summary (Volume Up/Down) and body (Current volume level X%).
Diffstat (limited to 'src/notifications-service.c')
-rw-r--r--src/notifications-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/notifications-service.c b/src/notifications-service.c
index 38fa247..71b7c40 100644
--- a/src/notifications-service.c
+++ b/src/notifications-service.c
@@ -217,6 +217,9 @@ log_to_file(const gchar *domain, GLogLevelFlags level, const gchar *message, gpo
static void
message_received_cb(DBusSpy *spy, Notification *note, gpointer user_data)
{
+ /* Discard volume notifications */
+ if(notification_is_volume(note)) return;
+
g_object_ref(note);
g_idle_add(add_notification_item, note);
}