summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-debug.c2
-rw-r--r--libdocument/ev-debug.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/libdocument/ev-debug.c b/libdocument/ev-debug.c
index 1d8adb7d..15aeb9ae 100644
--- a/libdocument/ev-debug.c
+++ b/libdocument/ev-debug.c
@@ -57,6 +57,8 @@ debug_init ()
if (g_getenv ("EV_DEBUG_JOBS") != NULL)
ev_debug |= EV_DEBUG_JOBS;
+ if (g_getenv ("EV_DEBUG_ZOOM") != NULL)
+ ev_debug |= EV_DEBUG_ZOOM;
}
static void
diff --git a/libdocument/ev-debug.h b/libdocument/ev-debug.h
index e1faf424..abf6ba5a 100644
--- a/libdocument/ev-debug.h
+++ b/libdocument/ev-debug.h
@@ -72,10 +72,12 @@ G_BEGIN_DECLS
*/
typedef enum {
EV_NO_DEBUG = 0,
- EV_DEBUG_JOBS = 1 << 0
+ EV_DEBUG_JOBS = 1 << 0,
+ EV_DEBUG_ZOOM = 1 << 1
} EvDebugSection;
#define DEBUG_JOBS EV_DEBUG_JOBS, __FILE__, __LINE__, G_STRFUNC
+#define DEBUG_ZOOM EV_DEBUG_ZOOM, __FILE__, __LINE__, G_STRFUNC
/*
* Set an environmental var of the same name to turn on