Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
2db0bf19
Commit
2db0bf19
authored
Dec 30, 2022
by
Luca Bacci
Committed by
Jehan
Jan 24, 2023
Browse files
Use MessageBoxW ()
parent
7b9e9ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/errors.c
View file @
2db0bf19
...
...
@@ -417,8 +417,16 @@ gimp_eek (const gchar *reason,
#if defined (G_OS_WIN32) && ! defined (GIMP_CONSOLE_COMPILATION)
/* g_on_error_* don't do anything reasonable on Win32. */
if
(
!
eek_handled
&&
!
the_errors_gimp
->
no_interface
)
MessageBox
(
NULL
,
g_strdup_printf
(
"%s: %s"
,
reason
,
message
),
full_prog_name
,
MB_OK
|
MB_ICONERROR
);
{
char
*
utf8
=
g_strdup_printf
(
"%s: %s"
,
reason
,
message
);
wchar_t
*
utf16
=
g_utf8_to_utf16
(
utf8
,
-
1
,
NULL
,
NULL
,
NULL
);
MessageBoxW
(
NULL
,
utf16
?
utf16
:
L"Generic error"
,
L"GIMP"
,
MB_OK
|
MB_ICONERROR
);
g_free
(
utf16
);
g_free
(
utf8
);
}
#endif
/* Let's try to back-up all unsaved images!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment