[monet/monet-xml] Check for MONET_DEBUG before printing debug statements



commit e0fc0b956703462b5a3e235054d412b644176840
Author: Thomas Wood <thos gnome org>
Date:   Sun Jul 25 18:18:47 2010 +0100

    Check for MONET_DEBUG before printing debug statements

 monet-gtk/style.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/monet-gtk/style.c b/monet-gtk/style.c
index 0921c6e..3930bac 100644
--- a/monet-gtk/style.c
+++ b/monet-gtk/style.c
@@ -315,7 +315,8 @@ monet_gtk_draw_box (GtkStyle      *style,
     }
   else
     {
-      g_debug ("draw_box detail not handled: \"%s\"", detail);
+      if (getenv ("MONET_DEBUG"))
+        g_debug ("draw_box detail not handled: \"%s\"", detail);
       monet_gtk_style_parent_class->draw_box (style, window, state_type,
                                               shadow_type, area, widget,
                                               detail, x, y, width, height);



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