From e02b5b2a9d3ae6cc0a27cb17b0969898d978d021 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 29 Mar 2011 11:23:00 +0200 Subject: [PATCH] Display a notification for auth events This makes them more visible when using the Shell (#646061). --- src/empathy-notifications-approver.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/empathy-notifications-approver.c b/src/empathy-notifications-approver.c index af074470..a87a6d30 100644 --- a/src/empathy-notifications-approver.c +++ b/src/empathy-notifications-approver.c @@ -216,6 +216,13 @@ add_notification_actions (EmpathyNotificationsApprover *self, "accept", _("Accept"), (NotifyActionCallback) notification_accept_subscription_cb, self, NULL); + break; + + case EMPATHY_EVENT_TYPE_AUTH: + notify_notification_add_action (notification, + "provide", _("Provide"), (NotifyActionCallback) notification_approve_cb, + self, NULL); + break; default: break; @@ -368,9 +375,6 @@ 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); @@ -384,9 +388,6 @@ 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); @@ -401,9 +402,6 @@ 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); } -- 2.39.2