[banshee: 48/61] [InternetArchive] view improvements
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee: 48/61] [InternetArchive] view improvements
- Date: Tue, 3 Nov 2009 06:31:52 +0000 (UTC)
commit b8815461d3193a64c4bcf88102336370e390cbf3
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Oct 13 19:41:32 2009 -0700
[InternetArchive] view improvements
Let the file list take up to 2/3 of the overall width. Blacklist
some more formats nobody is going to want within Banshee. And use a
PersistentColumnContrller, which will remember columns' visibility,
position, and size, and enables the header context menu again.
.../Banshee.InternetArchive/DetailsView.cs | 5 +++--
.../Banshee.InternetArchive/SearchView.cs | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
index 60d4c0b..fa60156 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
@@ -289,7 +289,7 @@ namespace Banshee.InternetArchive
var files = new List<IA.DetailsFile> (details.Files);
- string [] format_blacklist = new string [] { "metadata", "fingerprint", "checksums", "xml", "m3u" };
+ string [] format_blacklist = new string [] { "metadata", "fingerprint", "checksums", "xml", "m3u", "dublin core", "unknown" };
var formats = new List<string> ();
foreach (var f in files) {
var track = new TrackInfo () {
@@ -409,7 +409,8 @@ namespace Banshee.InternetArchive
target_list_width += file_sw.VScrollbar.Allocation.Width + 2;
}
- target_list_width = Math.Min (target_list_width, Allocation.Width / 2);
+ // Don't let the track list be more than 2/3 of the total view
+ target_list_width = Math.Min (target_list_width, (int) (2.0/3.0 * (double)Allocation.Width));
if (a.Allocation.Width != target_list_width && target_list_width > 0) {
file_sw.SetSizeRequest (target_list_width, -1);
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchView.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchView.cs
index bdef305..85a69ef 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchView.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchView.cs
@@ -69,8 +69,10 @@ namespace Banshee.InternetArchive
this.source = source;
list_view = new ResultListView ();
-
+ var controller = new PersistentColumnController ("InternetArchive");
+ list_view.ColumnController = controller;
AddColumns ();
+ controller.Load ();
list_view.RowActivated += (o, a) => {
ServiceManager.Get<InterfaceActionService> ()["InternetArchive.ViewItemDetails"].Activate ();
@@ -110,7 +112,6 @@ namespace Banshee.InternetArchive
{
RulesHint = true;
IsEverReorderable = false;
- ColumnController = new ColumnController ();
}
protected override bool OnPopupMenu ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]