[banshee] [ThickClient] Partial fix for cover art editing



commit 360e1b797af6d421a7a6dadc4b78e17cfa8d99e3
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri May 14 14:54:29 2010 -0700

    [ThickClient] Partial fix for cover art editing
    
    The lower-left cover art's right click menu should now work again.  The
    main track info display by the seek-slider isn't fixed yet. (BGO #618678)

 .../Banshee.Gui.Widgets/TrackInfoDisplay.cs        |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index bfe4445..eb419ec 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -329,10 +329,10 @@ namespace Banshee.Gui.Widgets
 
         protected virtual bool IsWithinCoverart (int x, int y)
         {
-            return x >= Allocation.X &&
-                y >= Allocation.Y + ArtworkOffset &&
-                x <= (Allocation.X + ArtworkSizeRequest) &&
-                y <= (Allocation.Y + ArtworkOffset + ArtworkSizeRequest);
+            return x >= 0 &&
+                y >= ArtworkOffset &&
+                x <= ArtworkSizeRequest &&
+                y <= (ArtworkOffset + ArtworkSizeRequest);
         }
 
         protected bool IsMissingImage (ImageSurface pb)



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