From 344eaf62015d77d1cd6885bda807a2e8fcb16b3b Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Tue, 17 May 2011 16:49:45 -0400 Subject: 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%). --- src/notifications-service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/notifications-service.c') 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); } -- cgit v1.2.3