[empathy] Display a notification for auth events
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Display a notification for auth events
- Date: Thu, 7 Apr 2011 10:44:08 +0000 (UTC)
commit e02b5b2a9d3ae6cc0a27cb17b0969898d978d021
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Mar 29 11:23:00 2011 +0200
Display a notification for auth events
This makes them more visible when using the Shell (#646061).
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 af07447..a87a6d3 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]