[banshee] Allow choosing non-local library locations supported



commit 0dc480e6e08860dde3fc96f79b7cf48b6186affa
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Mar 2 13:01:17 2010 -0800

    Allow choosing non-local library locations supported

 .../DefaultPreferenceWidgets.cs                    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/DefaultPreferenceWidgets.cs b/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/DefaultPreferenceWidgets.cs
index b633f4c..a761bbf 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/DefaultPreferenceWidgets.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Preferences.Gui/DefaultPreferenceWidgets.cs
@@ -104,6 +104,11 @@ namespace Banshee.Preferences.Gui
                 chooser = new FileChooserButton (Catalog.GetString ("Select library location"),
                     FileChooserAction.SelectFolder);
                 chooser.SetCurrentFolder (dir);
+                // Only set the LocalOnly property if false; setting it when true
+                // causes the "Other..." entry to be hidden in older Gtk+
+                if (!Banshee.IO.Provider.LocalOnly) {
+                    chooser.LocalOnly = Banshee.IO.Provider.LocalOnly;
+                }
                 chooser.SelectionChanged += OnChooserChanged;
 
                 HBox box = new HBox ();



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