-/* -*- 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. */
/****************************************************************************/
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;
}
}
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */