Mercurial > hg > forks > geeqie
diff src/preferences.c @ 507:7408e89b601d
Move debug macros from main.h to new debug.h.
Make debug_level static to debug.c and add utility functions
to manipulate it.
Add #include "debug.h" where needed.
author | Laurent Monin <geeqie@norz.org> |
---|---|
date | Thu, 24 Apr 2008 08:53:39 +0000 |
parents | 29dc838f7d6b |
children | 0896f486ec6f |
line wrap: on
line diff
--- a/src/preferences.c Thu Apr 24 00:15:03 2008 +0000 +++ b/src/preferences.c Thu Apr 24 08:53:39 2008 +0000 @@ -15,6 +15,7 @@ #include "preferences.h" #include "cache_maint.h" +#include "debug.h" #include "editors.h" #include "filelist.h" #include "fullscreen.h" @@ -278,7 +279,7 @@ } #ifdef DEBUG - debug = debug_c; + set_debug_level(debug_c); #endif #ifdef HAVE_LCMS @@ -1513,7 +1514,7 @@ group = pref_group_new(vbox, FALSE, _("Debugging"), GTK_ORIENTATION_VERTICAL); pref_spin_new_int(group, _("Debug level:"), NULL, - 0, 9, 1, debug, &debug_c); + DEBUG_LEVEL_MIN, DEBUG_LEVEL_MAX, 1, get_debug_level(), &debug_c); #endif }