[banshee/podcast-ng] [podcast-ng] Enabled Miro Guide support.



commit 1eca2a36bafb0dc75557e0cd1b4fef6b93a6fe6c
Author: Mike Urbanski <michael c urbanski gmail com>
Date:   Tue Mar 30 04:12:10 2010 -0500

    [podcast-ng] Enabled Miro Guide support.

 src/Clients/Nereid/Nereid/ViewContainer.cs         |    7 ++++---
 src/Extensions/Banshee.Paas/Banshee.Paas.csproj    |    7 +++++++
 .../Banshee.Paas.Gui/ColumnCellUnheard.cs          |    2 +-
 .../ColumnCellChannel.cs                           |    2 ++
 .../MiroGuideChannelListView.cs                    |    8 +++++++-
 .../Banshee.Paas/Banshee.Paas/PaasService.cs       |    4 ++--
 6 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/ViewContainer.cs b/src/Clients/Nereid/Nereid/ViewContainer.cs
index 25b4862..a120e3b 100644
--- a/src/Clients/Nereid/Nereid/ViewContainer.cs
+++ b/src/Clients/Nereid/Nereid/ViewContainer.cs
@@ -95,7 +95,8 @@ namespace Nereid
 
             header.PackStart (title_box, true, true, 0);
             header.PackStart (header_box, false, false, 0);
-            header.PackStart (search_entry, false, false, 0);
+            //header.PackStart (search_entry, false, false, 0);
+            header.PackStart (search_entry_box, false, false, 0);
 
             InterfaceActionService uia = ServiceManager.Get<InterfaceActionService> ();
             if (uia != null) {
@@ -298,8 +299,8 @@ namespace Nereid
         public bool SearchSensitive {
             get { return search_entry.Sensitive; }
             set {
-                search_entry.Sensitive = value;
-                search_entry.Visible = value;
+                SearchEntry.Sensitive = value;
+                SearchEntry.Visible = value;
             }
         }
     }
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas.csproj b/src/Extensions/Banshee.Paas/Banshee.Paas.csproj
index 58cd8f3..db5d6e3 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas.csproj
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas.csproj
@@ -191,4 +191,11 @@
       </Properties>
     </MonoDevelop>
   </ProjectExtensions>
+  <ItemGroup>
+    <None Include="Banshee.Paas.addin.xml" />
+    <None Include="Resources\ActiveSourceUI.xml" />
+    <None Include="Resources\GlobalUI.xml" />
+    <None Include="Resources\MiroGuideActiveSourceUI.xml" />
+    <None Include="Resources\MiroGuideUI.xml" />
+  </ItemGroup>
 </Project>
\ No newline at end of file
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/ColumnCellUnheard.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/ColumnCellUnheard.cs
index b1ba376..8b2192c 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/ColumnCellUnheard.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/ColumnCellUnheard.cs
@@ -48,7 +48,7 @@ namespace Banshee.Paas.Gui
             switch (val) {
                 case OldNewFilter.New:  return Catalog.GetString ("New Episodes");
                 case OldNewFilter.Both: return Catalog.GetString ("All");
-                case OldNewFilter.Old:  return Catalog.GetString ("Reruns");
+                case OldNewFilter.Old:  return Catalog.GetString ("Old Episodes");
             }
 
             return String.Empty;
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/ColumnCellChannel.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/ColumnCellChannel.cs
index 1a799c6..0efe625 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/ColumnCellChannel.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/ColumnCellChannel.cs
@@ -147,6 +147,7 @@ namespace Banshee.Paas.MiroGuide.Gui
             Pango.Layout layout = new Pango.Layout (widget.PangoContext);
             layout.FontDescription = widget.PangoContext.FontDescription.Copy ();
 
+            layout.FontDescription.Weight = Pango.Weight.Bold;
             layout.SetText ("W");
             layout.GetPixelSize (out text_w, out text_h);
             height = text_h;
@@ -158,6 +159,7 @@ namespace Banshee.Paas.MiroGuide.Gui
             layout.GetPixelSize (out text_w, out text_h);
             height += text_h;
 
+            layout.FontDescription.Dispose ();
             layout.Dispose ();
 
             return (height < image_size ? image_size : height) + 6;
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/MiroGuideChannelListView.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/MiroGuideChannelListView.cs
index de4f21c..b6bd334 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/MiroGuideChannelListView.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.MiroGuide.Gui/MiroGuideChannelListView.cs
@@ -48,7 +48,6 @@ namespace Banshee.Paas.MiroGuide.Gui
             column_controller.Add (new Column ("Channels", renderer, 1.0));
 
             ColumnController  = column_controller;
-//            RowHeightProvider = renderer.ComputeRowHeight;
         }
 
         protected override bool OnPopupMenu ()
@@ -59,5 +58,12 @@ namespace Banshee.Paas.MiroGuide.Gui
 
             return true;
         }
+
+        protected override Gdk.Size OnMeasureChild ()
+        {
+            return ViewLayout != null
+                ? base.OnMeasureChild ()
+                : new Gdk.Size (0, renderer.ComputeRowHeight (this));
+        }
     }
 }
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasService.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasService.cs
index 49e8b4a..ab817f3 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasService.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasService.cs
@@ -467,10 +467,10 @@ namespace Banshee.Paas
         private void InitializeInterface ()
         {
             ServiceManager.SourceManager.AddSource (source);
-/*
+
             mg_interface_manager = new MiroGuideInterfaceManager ();
             mg_interface_manager.Initialize (mg_client);
-*/
+
             download_manager_interface = new DownloadManagerInterface (source, download_manager);
         }
 



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