commit 302382cdcb989d7a7458ef3e7ef7740c90162d9b
parent 2ceb0d43d3469c600b0c52f99b752b6a8498fb4a
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sat, 29 Dec 2018 13:19:30 +0100
Fix alertpanel API use in win32 part of mimeview.c
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/common/codeconv.h b/src/common/codeconv.h
@@ -178,6 +178,11 @@ struct _CodeConverter
#define C_INTERNAL C_UTF_8
#define CS_INTERNAL CS_UTF_8
+typedef enum {
+ CODECONV_NOSPACE = -2,
+ CODECONV_FAIL = -1,
+ CODECONV_OK = 0
+} CodeconvResult;
void conv_utf8todisp (gchar *outbuf, gint outlen, const gchar *inbuf);
void conv_localetodisp (gchar *outbuf, gint outlen, const gchar *inbuf);
diff --git a/src/mimeview.c b/src/mimeview.c
@@ -2301,7 +2301,7 @@ static void mimeview_view_file(const gchar *filename, MimeInfo *partinfo,
"your computer.\n\n"
"Do you want to run this file?"), GTK_STOCK_CANCEL,
_("Run binary"),
- NULL, FALSE, NULL, ALERT_WARNING, G_ALERTDEFAULT);
+ NULL, ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
if (val == G_ALERTALTERNATE) {
debug_print("executing binary\n");
ShellExecute(NULL, L"open", (LPCWSTR)fn16, NULL, NULL, SW_SHOW);