]> git.sur5r.net Git - glabels/blobdiff - src/debug.c
Imported Upstream version 3.0.0
[glabels] / src / debug.c
index eea3fe5dc36535a24e95646470423fb0ab06a835..d29d6246ea851a8e60f0201bd048c55905827e91 100644 (file)
@@ -1,25 +1,21 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
 /*
- *  (GLABELS) Label and Business Card Creation program for GNOME
- *
- *  debug.c:  GLabels debug module
+ *  debug.c
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *
- *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
+ *  This file is part of gLabels.
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  gLabels is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
+ *  gLabels is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 /*
 
 #include "debug.h"
 
-#include <glib/gutils.h>
-#include <glib/gmessages.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmem.h>
+#include <glib.h>
+
 
 glDebugSection debug_flags = GLABELS_DEBUG_NONE;
 
+
 /****************************************************************************/
 /* Initialize debug flags, based on environmental variables.                */
 /****************************************************************************/
@@ -90,12 +85,18 @@ gl_debug_init (void)
                debug_flags |= GLABELS_DEBUG_MINI_PREVIEW;
        if (g_getenv ("GLABELS_DEBUG_PIXBUF_CACHE") != NULL)
                debug_flags |= GLABELS_DEBUG_PIXBUF_CACHE;
+       if (g_getenv ("GLABELS_DEBUG_SVG_CACHE") != NULL)
+               debug_flags |= GLABELS_DEBUG_SVG_CACHE;
        if (g_getenv ("GLABELS_DEBUG_EDITOR") != NULL)
                debug_flags |= GLABELS_DEBUG_EDITOR;
        if (g_getenv ("GLABELS_DEBUG_WDGT") != NULL)
                debug_flags |= GLABELS_DEBUG_WDGT;
        if (g_getenv ("GLABELS_DEBUG_PATH") != NULL)
                debug_flags |= GLABELS_DEBUG_PATH;
+       if (g_getenv ("GLABELS_DEBUG_FIELD_BUTTON") != NULL)
+               debug_flags |= GLABELS_DEBUG_FIELD_BUTTON;
+       if (g_getenv ("GLABELS_DEBUG_BARCODE") != NULL)
+               debug_flags |= GLABELS_DEBUG_BARCODE;
 }
 
 
@@ -127,3 +128,14 @@ gl_debug (glDebugSection  section,
        }
        
 }
+
+
+
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */