aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-event-manager.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-12-10 01:32:13 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-12-10 01:32:13 +0800
commit41dd635842b27268454435c557b74ea32245c7ae (patch)
tree6858adaa474abb672d73f0b26fa088a3ef153505 /src/empathy-event-manager.c
parentd7293eb2b362224a70ad1c8402691c987b1caf1c (diff)
downloadgsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar.gz
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar.bz2
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar.lz
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar.xz
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.tar.zst
gsoc2013-empathy-41dd635842b27268454435c557b74ea32245c7ae.zip
status-icon: blink when we get a password request
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r--src/empathy-event-manager.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 9ab20b769..f657cae35 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -865,8 +865,9 @@ event_manager_ft_got_contact_cb (TpConnection *connection,
}
static void
-dummy_process_func (EventPriv *event)
+event_manager_auth_process_func (EventPriv *event)
{
+ empathy_event_approve ((EmpathyEvent *) event);
}
/* If there is a file-transfer, media, or auth channel consider it as
@@ -1015,10 +1016,10 @@ approve_channels (TpSimpleApprover *approver,
}
else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_SERVER_AUTHENTICATION)
{
- /* We need a process function or this will time out after
- * NOTIFICATION_TIMEOUT seconds, which is undesirable. */
event_manager_add (approval->manager, account, NULL, EMPATHY_EVENT_TYPE_AUTH,
- NULL, NULL, NULL, approval, dummy_process_func, NULL);
+ GTK_STOCK_DIALOG_AUTHENTICATION, tp_account_get_display_name (account),
+ _("Password required"), approval,
+ event_manager_auth_process_func, NULL);
}
else
{