From 4c574084d78748618a4add0d7cb65f0d2d252c9a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 1 Dec 2015 08:43:17 +0100 Subject: [PATCH] Output viewer: Add diagnostic feature --- src/ui/gui/psppire-output-view.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index dd5aadb9a0..d9597c9b5f 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -165,6 +165,16 @@ create_drawing_area (struct psppire_output_view *view, GtkWidget *drawing_area, struct xr_rendering *r, int tw, int th) { + /* Enable this to help with debugging. It shows you which widgets are being + put where. */ + if (0) + { + GdkRGBA green = {0, 1, 0, 1}; + gtk_widget_override_background_color (view->output, GTK_STATE_NORMAL, &green); + GdkRGBA red = {1, 0, 0, 1}; + gtk_widget_override_background_color (drawing_area, GTK_STATE_NORMAL, &red); + } + g_object_set_data_full (G_OBJECT (drawing_area), "rendering", r, free_rendering); -- 2.30.2