diff options
Diffstat (limited to 'src/empathy-notifications-approver.c')
-rw-r--r-- | src/empathy-notifications-approver.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/empathy-notifications-approver.c b/src/empathy-notifications-approver.c index af074470e..a87a6d30e 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); } |