turn on --g-fatal-warnings if METACITY_G_FATAL_WARNINGS env variable is

2002-05-12  Havoc Pennington  <hp@pobox.com>

	* src/main.c (main): turn on --g-fatal-warnings if
	METACITY_G_FATAL_WARNINGS env variable is set.
This commit is contained in:
Havoc Pennington 2002-05-12 14:50:05 +00:00 committed by Havoc Pennington
parent af83598ad3
commit b94beb3289
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-05-12 Havoc Pennington <hp@pobox.com>
* src/main.c (main): turn on --g-fatal-warnings if
METACITY_G_FATAL_WARNINGS env variable is set.
2002-05-11 Anders Carlsson <andersca@gnu.org> 2002-05-11 Anders Carlsson <andersca@gnu.org>
* src/display.c: (find_tab_forward), (find_tab_backward), * src/display.c: (find_tab_forward), (find_tab_backward),

View File

@ -257,10 +257,11 @@ main (int argc, char **argv)
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
log_handler, NULL); log_handler, NULL);
if (meta_is_debugging ())
g_log_set_always_fatal (G_LOG_LEVEL_MASK);
#endif #endif
if (g_getenv ("METACITY_G_FATAL_WARNINGS") != NULL)
g_log_set_always_fatal (G_LOG_LEVEL_MASK);
meta_ui_set_current_theme (meta_prefs_get_theme (), FALSE); meta_ui_set_current_theme (meta_prefs_get_theme (), FALSE);
/* Try some panic stuff, this is lame but we really /* Try some panic stuff, this is lame but we really