[banshee] [Banshee.Moblin] Remove play queue header, add open button



commit 0fe15c7e0824595792ec77dea6d7ba7fe3ef295c
Author: Aaron Bockover <abockover novell com>
Date:   Thu Oct 15 05:36:16 2009 -0400

    [Banshee.Moblin] Remove play queue header, add open button

 .../Banshee.Moblin/MediaPanelContents.cs           |   11 +++++++++++
 .../Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs  |    4 ----
 2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs
index 946ad44..2225b11 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs
@@ -50,6 +50,7 @@ namespace Banshee.Moblin
         {
             var left = new VBox () { Spacing = 10 };
             left.PackStart (new SearchHeader (), false, false, 0);
+            
             left.PackStart (new Label () {
                 Xalign = 0.0f,
                 Xpad = 10,
@@ -57,6 +58,16 @@ namespace Banshee.Moblin
                     GLib.Markup.EscapeText (Catalog.GetString ("Most Recently Played")))
             }, false, false, 0);
             left.PackStart (new RecentAlbumsView (), false, false, 0);
+            
+            var button = new Button (Catalog.GetString ("Music Library"));
+            button.Clicked += (o, e) => {
+                ServiceManager.SourceManager.SetActiveSource (ServiceManager.SourceManager.MusicLibrary);
+                ServiceManager.Get<MoblinService> ().PresentPrimaryInterface ();
+            };
+            var hbox = new HBox ();
+            hbox.PackStart (button, false, false, 0);
+            hbox.ShowAll ();
+            left.PackStart (hbox, false, false, 0);
 
             PackStart (left, true, true, 0);
             PackStart (new PlayQueueBox (), false, false, 0);
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
index aedaddd..9b85f34 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
@@ -83,10 +83,6 @@ namespace Banshee.Moblin
             ServiceManager.SourceManager.SetActiveSource (play_queue);
             //play_queue.TrackModel.Reloaded += HandleTrackModelReloaded;
             playqueue_view.SetModel (play_queue.TrackModel);
-            
-            var header = play_queue.CreateHeaderWidget ();
-            PackStart (header, false, false, 0);
-            header.ShowAll ();
         }
     }
 }



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