[banshee] More openSUSE 11.0 build fixes
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] More openSUSE 11.0 build fixes
- Date: Thu, 17 Dec 2009 02:08:18 +0000 (UTC)
commit f4b528df9e8b0b33ea84013442afd277c4073058
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Dec 16 15:34:36 2009 -0800
More openSUSE 11.0 build fixes
.../ColumnCellStatusIndicator.cs | 2 ++
.../Banshee.InternetArchive/DetailsSource.cs | 9 ++++++++-
.../Banshee.InternetArchive/DetailsView.cs | 15 +++++++++++++--
3 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
index ecc012e..08c9c7e 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
@@ -55,8 +55,10 @@ namespace Banshee.Collection.Gui
{
string new_image_description = cell.GetTextAlternative (bound_object);
+#if ENABLE_ATK
if (image_description != new_image_description)
GLib.Signal.Emit (this, "visible-data-changed");
+#endif
image_description = new_image_description;
}
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
index a7b27ea..2378f8d 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
@@ -168,7 +168,14 @@ namespace Banshee.InternetArchive
}
public long FileSize {
- get { return track_model.Sum (t => t.FileSize); }
+ get {
+ // Mono on openSUSE 11.0 doesn't like this
+ // return track_model.Sum (t => t.FileSize);
+ long result = 0;
+ foreach (var t in track_model)
+ result += t.FileSize;
+ return result;
+ }
}
#region ITrackModelSource
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
index 27923d8..b943576 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsView.cs
@@ -449,8 +449,19 @@ namespace Banshee.InternetArchive
// Make these columns snugly fix their data
if (tracks.Count > 0) {
- SetWidth (columns.TrackColumn, all_tracks_have_num_in_title ? 0 : tracks.Max (f => f.TrackNumber), 0);
- SetWidth (columns.FileSizeColumn, tracks.Max (f => f.FileSize), 0);
+ // Mono in openSUSE 11.0 doesn't like this
+ //SetWidth (columns.TrackColumn, all_tracks_have_num_in_title ? 0 : tracks.Max (f => f.TrackNumber), 0);
+ long max_track = 0;
+ long max_size = 0;
+ foreach (var t in tracks) {
+ max_track = Math.Max (max_track, t.TrackNumber);
+ max_size = Math.Max (max_size, t.FileSize);
+ }
+ SetWidth (columns.TrackColumn, all_tracks_have_num_in_title ? 0 : max_track, 0);
+
+ // Mono in openSUSE 11.0 doesn't like this
+ //SetWidth (columns.FileSizeColumn, tracks.Max (f => f.FileSize), 0);
+ SetWidth (columns.FileSizeColumn, max_size, 0);
SetWidth (columns.DurationColumn, tracks.Max (f => f.Duration), TimeSpan.Zero);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]