[hitori] Remove an extraneous debug print statement



commit 612373480eed2fc1756e7b2d7e7c5173b8b1fea2
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Jun 11 16:03:16 2011 +0100

    Remove an extraneous debug print statement

 src/interface.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/interface.c b/src/interface.c
index 506936b..0135816 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -160,7 +160,10 @@ hitori_draw_cb (GtkWidget *drawing_area, cairo_t *cr, Hitori *hitori)
 			border.left = 2.0; /* Hack! */
 
 			/* Draw the fill */
-			g_message ("State: %u", state);
+			if (hitori->debug == TRUE) {
+				g_debug ("State: %u", state);
+			}
+
 			gtk_style_context_get_background_color (style_context, state, &colour);
 			gdk_cairo_set_source_rgba (cr, &colour);
 			cairo_rectangle (cr, x_pos, y_pos, cell_size, cell_size);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]