[banshee/gtk3] [widget] Fix LinkLabel widget for gtk3



commit 704bcb814b7f20bb5758bab156b721a5613bebf7
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sun Jul 3 17:45:11 2011 +0200

    [widget] Fix LinkLabel widget for gtk3

 .../Banshee.Widgets/Banshee.Widgets/LinkLabel.cs   |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/LinkLabel.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/LinkLabel.cs
index e743a9f..017e79a 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/LinkLabel.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/LinkLabel.cs
@@ -108,15 +108,15 @@ namespace Banshee.Widgets
                 return false;
             }
 
-            if(evnt.Window == GdkWindow && HasFocus) {
+            if(CairoHelper.ShouldDrawWindow (cr, Window) && HasFocus) {
                 int layout_width = 0, layout_height = 0;
                 label.Layout.GetPixelSize(out layout_width, out layout_height);
-                Style.PaintFocus (Style, GdkWindow, State, evnt.Area, this, "checkbutton",
+                Style.PaintFocus (Style, cr, State, this, "checkbutton",
                     0, 0, layout_width + 2 * padding, layout_height + 2 * padding);
             }
 
             if(Child != null) {
-                PropagateExpose(Child, evnt);
+                PropagateDraw(Child, cr);
             }
 
             return false;
@@ -125,7 +125,7 @@ namespace Banshee.Widgets
         protected override void OnGetPreferredHeight (out int minimum_height, out int natural_height)
         {
             if (label == null) {
-                base.OnGetPreferredWidth (out minimum_width, out natural_width);
+                base.OnGetPreferredHeight (out minimum_height, out natural_height);
                 return;
             }
 



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