summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-01-13 11:01:34 +0200
committerStefan Kost <ensonic@users.sf.net>2011-01-20 09:44:40 +0200
commit68d962182fc476075483f97ac8e26211b5bcd9cf (patch)
treef65814e4aeb4fcb7e6c762b036f548cbb982f927
parent8f01a9d261fe1c6cd26636054f39b3e952258b43 (diff)
ui: whitespace and debug logging fixes
Tie the generation of dot/png files for debuging the layout to GSTTLUI_DEBUG envvar.
-rw-r--r--src/ui/main-window.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/main-window.c b/src/ui/main-window.c
index a9b2ffc..01d21c4 100644
--- a/src/ui/main-window.c
+++ b/src/ui/main-window.c
@@ -405,7 +405,7 @@ refresh_layout (GstTLMainWindow *self, GstTLRefreshMode mode)
goto done;
}
// write out the dot file or image for testing
-#if 1
+#ifdef ENABLE_TRACE
{
static guint __ct=0;
gchar __fname[50];
@@ -413,8 +413,11 @@ refresh_layout (GstTLMainWindow *self, GstTLRefreshMode mode)
TRACE("=== %d ===",__ct);
sprintf (__fname, "/tmp/gsttl_%03d.dot", __ct);
gvRenderFilename (self->priv->gvc, root, "dot", __fname);
- //sprintf (__fname, "/tmp/gsttl_%03d.png", __ct);
- //gvRenderFilename (self->priv->gvc, root, "png", "/tmp/gsttlgraph.png");
+ sprintf (__fname, "/tmp/gsttl_%03d.png", __ct);
+ gvRenderFilename (self->priv->gvc, root, "png", __fname);
+ /*
+ gvRenderFilename (self->priv->gvc, root, "png", "/tmp/gsttlgraph.png");
+ */
__ct++;
}
#endif