gnome-utils r7661 - trunk/gnome-dictionary/libgdict



Author: ebassi
Date: 2007-09-06 18:05:16 +0100 (Thu, 06 Sep 2007)
New Revision: 7661
ViewCVS link: http://svn.gnome.org/viewcvs/gnome-utils?rev=7661&view=rev

Removed:
   trunk/gnome-dictionary/libgdict/gdict-debug.c
Modified:
   trunk/gnome-dictionary/libgdict/Makefile.am
   trunk/gnome-dictionary/libgdict/gdict-client-context.c
   trunk/gnome-dictionary/libgdict/gdict-database-chooser.c
   trunk/gnome-dictionary/libgdict/gdict-debug.h
   trunk/gnome-dictionary/libgdict/gdict-defbox.c
   trunk/gnome-dictionary/libgdict/gdict-speller.c
   trunk/gnome-dictionary/libgdict/gdict-strategy-chooser.c
   trunk/gnome-dictionary/libgdict/gdict-utils.c
   trunk/gnome-dictionary/libgdict/gdict-utils.h
Log:
Improve GDict debug messages handling

This commit changes the debug messages handling in GDict, using a system
similar to the one GLib and GTK+ use. You can either set the GDICT_DEBUG
environment variable to a colon-separated or comma-separated list of
debug flags, or you can use the --gdict-debug and --gdict-no-debug
command line arguments to switch on (and off) the debug flags. The
GDICT_NOTE() macro has been added as well, replacing _gdict_debug() for
a more comprehensive debug output.

The entire debug message system is enabled either by calling the
gdict_debug_init() function or by using the GOptionGroup that is
returned by gdict_get_option_group().

The debug message system is also depending on whether the GDict library
has been compiled with the GDICT_ENABLE_DEBUG flag -- which is the
default for development/unstable cycles.





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