[banshee/gtk3] Use new size system where size request is replaced by preferred height/width



commit 643dac148413926c9b361a471bc41205c9f31bd5
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sun Jul 17 08:05:08 2011 +0200

    Use new size system where size request is replaced by preferred height/width

 .../Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
index 3995756..7fdc97f 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
@@ -135,9 +135,10 @@ namespace Banshee.Gui.Widgets
             }
         }
 
-        protected override void OnSizeRequested (ref Requisition requisition)
+        protected override void OnGetPreferredHeight (out int minimum_height, out int natural_height)
         {
-            requisition.Height = ComputeWidgetHeight ();
+            minimum_height = ComputeWidgetHeight ();
+            natural_height = minimum_height;
         }
 
         private int ComputeWidgetHeight ()



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