[empathy/gnome-2-34: 59/60] status-icon: don't show notifications for auth events



commit be94217540e1b927afabd3b2ff1dbfe0655e7aff
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Wed Dec 8 18:24:47 2010 +0000

    status-icon: don't show notifications for auth events
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 src/empathy-status-icon.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 190498a..8ab641a 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -330,6 +330,10 @@ status_icon_event_added_cb (EmpathyEventManager *manager,
 		return;
 	}
 
+	if (event->type == EMPATHY_EVENT_TYPE_AUTH) {
+		return;
+	}
+
 	DEBUG ("New event %p", event);
 
 	priv->event = event;
@@ -358,6 +362,10 @@ status_icon_event_removed_cb (EmpathyEventManager *manager,
 		return;
 	}
 
+	if (event->type == EMPATHY_EVENT_TYPE_AUTH) {
+		return;
+	}
+
 	priv->event = empathy_event_manager_get_top_event (priv->event_manager);
 
 	status_icon_update_tooltip (icon);
@@ -385,6 +393,10 @@ status_icon_event_updated_cb (EmpathyEventManager *manager,
 		return;
 	}
 
+	if (event->type == EMPATHY_EVENT_TYPE_AUTH) {
+		return;
+	}
+
 	if (empathy_notify_manager_notification_is_enabled (priv->notify_mgr)) {
 		status_icon_update_notification (icon);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]