[banshee/grid] [GtkBaseClient] support enabling update debugging



commit e545257dcdfb707049efd9bc5d7650acb600ce9a
Author: Aaron Bockover <abockover novell com>
Date:   Fri Jan 22 18:55:40 2010 -0500

    [GtkBaseClient] support enabling update debugging
    
    If running in debug mode and the GDK_DEBUG_UPDATES environment
    variable is set, then enable update debugging on GDK drawables.
    
    This is a useful tool to ensure that no excessive painting is
    going on in the app.

 .../Banshee.Gui/GtkBaseClient.cs                   |    1 +
 .../Hyena.Gui/Hyena.Data.Gui/DataViewChild.cs      |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
index 3492c8f..fc2de38 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
@@ -128,6 +128,7 @@ namespace Banshee.Gui
 
             if (ApplicationContext.Debugging) {
                 GLib.Log.SetLogHandler ("Gtk", GLib.LogLevelFlags.Critical, GLib.Log.PrintTraceLogFunction);
+                Gdk.Window.DebugUpdates = !String.IsNullOrEmpty (Environment.GetEnvironmentVariable ("GDK_DEBUG_UPDATES"));
             }
 
             ServiceManager.ServiceStarted += OnServiceStarted;
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/DataViewChild.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/DataViewChild.cs
index 9480f7b..2925b43 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/DataViewChild.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/DataViewChild.cs
@@ -40,7 +40,6 @@ namespace Hyena.Data.Gui
 
         public override void Invalidate (Gdk.Rectangle area)
         {
-            Gdk.Window.DebugUpdates = true;
             ParentLayout.View.QueueDirtyRegion (area);
         }
 



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