debug flags and g_type_init()
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gtk org
- Cc: timj gtk org
- Subject: debug flags and g_type_init()
- Date: 05 Jun 2001 16:17:25 -0400
Currently:
- g_type_init() can be called multiple times
- debug flags not set the first time will be silently ignored.
So, in the rare case that someone wants to set the debug
flags, they have to do:
g_type_init (my_debug_flags);
gtk_init (&argc, &argv);
Why not remove the debug flags argument to g_type_init()
and have a separate g_type_set_debug_flags()? This has
the advantages:
- We omit the mysterious 0 from g_type_init(0)
- We can put out a meaningful error if someone tries to
set the debug flags after GType is initialized.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]