talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6d0b5371aaabc3e56b1561e2371e9d7d908df3b3
parent fd6f84d6b30d40bcf198cdb7ad3747b0ed27be48
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri, 21 Dec 2018 10:44:34 +0100

Fix outdated uses of alertpanel() in code paths for --disable-gnutls.

Diffstat:
Msrc/imap.c | 5++---
Msrc/inc.c | 5++---
Msrc/news.c | 5++---
Msrc/send_message.c | 5++---
4 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/imap.c b/src/imap.c @@ -1154,9 +1154,8 @@ static IMAPSession *imap_session_new(Folder * folder, "Do you want to continue connecting to this " "server? The communication would not be " "secure."), - GTK_STOCK_CANCEL, _("Con_tinue connecting"), - NULL, FALSE, NULL, ALERT_WARNING, - G_ALERTDEFAULT) != G_ALERTALTERNATE) + GTK_STOCK_CANCEL, _("Con_tinue connecting"), NULL, + ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) return NULL; } port = account->set_imapport ? account->imapport diff --git a/src/inc.c b/src/inc.c @@ -877,9 +877,8 @@ static IncState inc_pop3_session_do(IncSession *session) "Do you want to continue connecting to this " "server? The communication would not be " "secure."), - GTK_STOCK_CANCEL, _("Con_tinue connecting"), - NULL, FALSE, NULL, ALERT_WARNING, - G_ALERTDEFAULT) != G_ALERTALTERNATE) + GTK_STOCK_CANCEL, _("Con_tinue connecting"), NULL, + ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) return INC_CANCEL; } #endif diff --git a/src/news.c b/src/news.c @@ -406,9 +406,8 @@ static Session *news_session_new_for_folder(Folder *folder) "Do you want to continue connecting to this " "server? The communication would not be " "secure."), - GTK_STOCK_CANCEL, _("Con_tinue connecting"), - NULL, FALSE, NULL, ALERT_WARNING, - G_ALERTDEFAULT) != G_ALERTALTERNATE) + GTK_STOCK_CANCEL, _("Con_tinue connecting"), NULL, + ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) return NULL; } port = ac->set_nntpport ? ac->nntpport : NNTP_PORT; diff --git a/src/send_message.c b/src/send_message.c @@ -290,9 +290,8 @@ gint send_message_smtp_full(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp, g "Do you want to continue connecting to this " "server? The communication would not be " "secure."), - GTK_STOCK_CANCEL, _("Con_tinue connecting"), - NULL, FALSE, NULL, ALERT_WARNING, - G_ALERTDEFAULT) != G_ALERTALTERNATE) { + GTK_STOCK_CANCEL, _("Con_tinue connecting"), NULL, + ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) { session_destroy(session); return -1; }