[banshee] [SourceView] Add a couple separators



commit c9122b0dd153ea5453b3d0c19de85deb21a621fc
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Jul 14 17:24:47 2010 -0700

    [SourceView] Add a couple separators
    
    Between Play Queue and libraries, and libraries and online sources.

 .../Banshee.Sources/SourceManager.cs               |   10 ++++++++++
 .../Banshee.Sources.Gui/SourceModel.cs             |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
index 6878128..22b1a41 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
@@ -66,12 +66,22 @@ namespace Banshee.Sources
         public event SourceEventHandler SourceRemoved;
         public event SourceEventHandler ActiveSourceChanged;
 
+        public class GroupSource : Source
+        {
+            public GroupSource (string name, int order) : base (name, name, order)
+            {
+            }
+        }
+
         public void Initialize ()
         {
             // TODO should add library sources here, but requires changing quite a few
             // things that depend on being loaded before the music library is added.
             //AddSource (music_library = new MusicLibrarySource (), true);
             //AddSource (video_library = new VideoLibrarySource (), false);
+            AddSource (new GroupSource ("Library", 39));
+            AddSource (new GroupSource ("Online Media", 60));
+            //AddSource (new GroupSource ("Devices", 400));
         }
 
         internal void LoadExtensionSources ()
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
index 28817a4..d9996ed 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
@@ -239,7 +239,7 @@ namespace Banshee.Sources.Gui
 
                 SetValue (iter, 0, source);
                 SetValue (iter, 1, source.Order);
-                SetValue (iter, 2, false);
+                SetValue (iter, 2, source is SourceManager.GroupSource);
 
                 lock (source.Children) {
                     foreach (Source child in source.Children) {



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