aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-12-09 02:24:47 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-12-10 00:35:24 +0800
commit1a85f1ae21dd6be86f6e15e424ece5302c8faa4d (patch)
tree37ecebcad35e9cef4f818edb149a6a984ed6468d /src
parent071992a0704d43baa2a72b576401ea1f68b44de6 (diff)
downloadgsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar.gz
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar.bz2
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar.lz
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar.xz
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.tar.zst
gsoc2013-empathy-1a85f1ae21dd6be86f6e15e424ece5302c8faa4d.zip
notifications-approver: don't show notifications for auth events
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-notifications-approver.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-notifications-approver.c b/src/empathy-notifications-approver.c
index 0bfe03274..e0d540cdc 100644
--- a/src/empathy-notifications-approver.c
+++ b/src/empathy-notifications-approver.c
@@ -314,7 +314,11 @@ event_added_cb (EmpathyEventManager *manager,
if (self->priv->event != NULL)
return;
+ if (event->type == EMPATHY_EVENT_TYPE_AUTH)
+ return;
+
self->priv->event = event;
+
update_notification (self);
}
@@ -326,6 +330,9 @@ event_removed_cb (EmpathyEventManager *manager,
if (event != self->priv->event)
return;
+ if (event->type == EMPATHY_EVENT_TYPE_AUTH)
+ return;
+
self->priv->event = empathy_event_manager_get_top_event (
self->priv->event_mgr);
@@ -340,6 +347,9 @@ event_updated_cb (EmpathyEventManager *manager,
if (event != self->priv->event)
return;
+ if (event->type == EMPATHY_EVENT_TYPE_AUTH)
+ return;
+
if (empathy_notify_manager_notification_is_enabled (self->priv->notify_mgr))
update_notification (self);
}