aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-29 17:23:00 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-07 18:43:56 +0800
commite02b5b2a9d3ae6cc0a27cb17b0969898d978d021 (patch)
tree5ef7a65e00e08ee86eb43ab363f7d13922a54139 /src
parentf4711fa5d39fe11f158e11d6499a352d824715df (diff)
downloadgsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar.gz
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar.bz2
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar.lz
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar.xz
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.tar.zst
gsoc2013-empathy-e02b5b2a9d3ae6cc0a27cb17b0969898d978d021.zip
Display a notification for auth events
This makes them more visible when using the Shell (#646061).
Diffstat (limited to 'src')
-rw-r--r--src/empathy-notifications-approver.c16
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);
}