mention = are_attachments_mentioned(compose);
if (does_not_have_attachments(compose) && mention != NULL) {
AlertValue aval;
- gchar *button_label;
gchar *message;
gchar *bold_text;
- debug_print("user has to decide\n");
- if (compose->sending)
- button_label = g_strconcat("+", _("_Send"), NULL);
- else
- button_label = g_strconcat("+", _("_Queue"), NULL);
-
bold_text = g_strdup_printf("<span weight=\"bold\">%.20s</span>...",
mention->context);
message = g_strdup_printf(
bold_text,
compose->sending?_("Send it anyway?"):_("Queue it anyway?"));
aval = alertpanel(_("Attachment warning"), message,
- GTK_STOCK_CANCEL, button_label, NULL);
+ GTK_STOCK_CANCEL,
+ compose->sending ? _("_Send") : _("Queue"),
+ NULL,
+ ALERTFOCUS_SECOND);
g_free(message);
g_free(bold_text);
- g_free(button_label);
if (aval != G_ALERTALTERNATE)
return TRUE;
}