Fix for #136660, suppresses pointless messages when not in debug mode.
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 24 Mar 2004 13:04:32 +0000 (13:04 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 24 Mar 2004 13:04:32 +0000 (13:04 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@638 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
atk-bridge/bridge.c

index 6b7a2c9..000be5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-24  Bill Haneman <billh@gnome.org>
+
+       * atk-bridge/bridge.c:
+       Bracketed some debug output in 
+       conditionals, to avoid printing it in normal use.
+       Fixes bug #136660.
+       
 2004-03-22  Bill Haneman <billh@gnome.org>
 
        * configure.in: Revved to 1.4.0, libtool 9.14.9
index af34f3b..0af5568 100644 (file)
@@ -465,7 +465,10 @@ gnome_accessibility_module_init (void)
 {
   atk_bridge_init (NULL, NULL);
 
-  g_print("Atk Accessibilty bridge initialized\n");
+  if (g_getenv ("AT_BRIDGE_SHUTDOWN"))
+    {
+       g_print("Atk Accessibility bridge initialized\n");
+    }
 }
 
 void
@@ -482,7 +485,10 @@ gnome_accessibility_module_shutdown (void)
   atk_bridge_initialized = FALSE;
   this_app = NULL;
 
-  g_print("Atk Accessibilty bridge shutdown\n");
+  if (g_getenv ("AT_BRIDGE_SHUTDOWN"))
+    {
+       g_print("Atk Accessibility bridge shutdown\n");
+    }
 
   listener_ids = NULL;
   atk_remove_focus_tracker (atk_bridge_focus_tracker_id);