--g-fatal-warnings



hi all,

after Glib supporting different log levels and domains now,
gtk gained a few more options to specify fatal warnings.
glib logs g_warning() with G_LOG_LEVEL_WARNING, g_error()
with G_LOG_LEVEL_ERROR, and g_return*_if_fail() with
G_LOG_LEVEL_CRITICAL, since the latter is different from
a normal warning in that it actually causes abortion of
certain functions.

gtk_init() currently features:
--g-fatal-warnings   for abortion on g_warning in GLib
--gdk-fatal-warnings for abortion on g_warning in GDK
--gtk-fatal-warnings for abortion on g_warning in GTK+
--g-fatal-checks     for abortion on g_return*_if_fail in GLib
--gdk-fatal-checks   for abortion on g_return*_if_fail in GDK
--gtk-fatal-checks   for abortion on g_return*_if_fail in GTK+

i'd like that to reduce to either

--gtk-fatal-warnings for abortion on g_warning in GTK+/GDK/GLib/GModule
--gtk-fatal-checks   for abortion on g_return*_if_fail in GTK+/GDK/GLib/GModule

or

--gtk-fatal-checks   for abortion on g_return*_if_fail and g_warning in
                     GTK+/GDK/GLib/GModule


what are peoples opinions on this issue?



---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]