}
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
}
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
{
DEBUG ("New event %p", event);
priv->event = event;
- if (event->must_ack) {
+ if (event->must_ack || event->type == EMPATHY_EVENT_TYPE_AUTH) {
priv->showing_event_icon = TRUE;
status_icon_update_icon (icon);
status_icon_update_tooltip (icon);