[banshee] [Audiobook] Trying to fix build, still broken



commit 49f171def3f692f18f8c2cabe05c10dc30faa295
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Jan 21 12:28:23 2010 -0800

    [Audiobook] Trying to fix build, still broken

 .../Banshee.Audiobook/AudiobookGrid.cs             |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookGrid.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookGrid.cs
index 6f60243..0bbf114 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookGrid.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookGrid.cs
@@ -56,14 +56,18 @@ namespace Banshee.Audiobook
 
         public AudiobookGrid ()
         {
+            ViewLayout = new DataViewLayoutGrid ();
+
             renderer = new ColumnCellAlbum () {
-                LayoutStyle = DataViewLayoutStyle.Grid,
-                ImageSize = 150
+                ImageSize = 150,
+                ViewLayout = ViewLayout
             };
+
+            ViewLayout.ChildSize = renderer.Measure (ViewLayout.View);
+
             var column_controller = new ColumnController ();
             column_controller.Add (new Column ("Album", renderer, 1.0));
 
-            LayoutStyle = DataViewLayoutStyle.Grid;
             ColumnController = column_controller;
             //RowActivated += OnRowActivated;
         }



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