From 200bb7f7715639e7ef17758e13b6dd3389e6cc91 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 19 Aug 2003 19:12:07 +0000 Subject: [PATCH] [Win32] Make the fatal error message box easier to notice with 2003-08-19 Tor Lillqvist * glib/gmessages.c (g_logv): [Win32] Make the fatal error message box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR to get a nice stop-sign icon. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gmessages.c | 3 ++- 7 files changed, 38 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd00456..b84b356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dd00456..b84b356 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index dd00456..b84b356 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index dd00456..b84b356 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index dd00456..b84b356 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index dd00456..b84b356 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2003-08-19 Tor Lillqvist + + * glib/gmessages.c (g_logv): [Win32] Make the fatal error message + box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR + to get a nice stop-sign icon. + Tue Aug 19 09:42:06 2003 Owen Taylor * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS diff --git a/glib/gmessages.c b/glib/gmessages.c index fde63f7..c3bedf3 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -510,7 +510,8 @@ g_logv (const gchar *log_domain, #ifdef G_OS_WIN32 gchar *locale_msg = g_locale_from_utf8 (fatal_msg_buf, -1, NULL, NULL, NULL); - MessageBox (NULL, locale_msg, NULL, MB_OK); + MessageBox (NULL, locale_msg, NULL, + MB_ICONERROR|MB_SETFOREGROUND); #endif #if defined (G_ENABLE_DEBUG) && (defined (SIGTRAP) || defined (G_OS_WIN32)) if (!(test_level & G_LOG_FLAG_RECURSION)) -- 2.7.4