From 8e44b858c944c09d98d42fe2b15f3bd60510aff1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 8 Nov 2012 23:28:59 +0100 Subject: [PATCH] Try to simply notify the user when authentication works --- src/phone.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/phone.c b/src/phone.c index a2b6598..ddedf75 100644 --- a/src/phone.c +++ b/src/phone.c @@ -4066,9 +4066,15 @@ static void _modem_event_authentication(Phone * phone, ModemEvent * event) phone_code_clear(phone); if(name == NULL) break; - /* FIXME turn this into a simple notification */ snprintf(buf, sizeof(buf), _("%s is valid"), name); - _phone_info(phone, phone->en_window, buf, callback); + if(phone_event_type(phone, + PHONE_EVENT_TYPE_NOTIFICATION, + PHONE_NOTIFICATION_TYPE_INFO, + NULL, buf) != 0) + phone_show_code(phone, FALSE); + else + _phone_info(phone, phone->en_window, buf, + callback); break; case MODEM_AUTHENTICATION_STATUS_REQUIRED: if(event->authentication.method