[banshee/podcast-ng] [podcast-ng] Differentiate un/downloaded episodes by row sensitivity
- From: Michael C. Urbanski <murbanski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/podcast-ng] [podcast-ng] Differentiate un/downloaded episodes by row sensitivity
- Date: Thu, 2 Dec 2010 05:05:07 +0000 (UTC)
commit 6aeba17f1cfe7dd1390ec0c96f5a1b0a7d8a0c6a
Author: Mike Urbanski <michael c urbanski gmail com>
Date: Wed Dec 1 23:03:15 2010 -0600
[podcast-ng] Differentiate un/downloaded episodes by row sensitivity
.../Banshee.Paas/Banshee.Paas.Gui/PaasItemView.cs | 17 +++--------------
.../Banshee.Paas/Banshee.Paas/PaasSource.cs | 3 +--
2 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasItemView.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasItemView.cs
index e97e799..78524eb 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasItemView.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasItemView.cs
@@ -65,14 +65,8 @@ namespace Banshee.Paas.Gui
return base.OnPopupMenu ();
}
- protected override void ColumnCellDataProvider (ColumnCell cell, object boundItem)
+ protected override void ColumnRowDataProvider (object boundItem)
{
- ColumnCellText text_cell = cell as ColumnCellText;
-
- if (text_cell == null) {
- return;
- }
-
DatabaseTrackInfo track = boundItem as DatabaseTrackInfo;
if (track != null) {
@@ -81,13 +75,8 @@ namespace Banshee.Paas.Gui
if (pti == null) {
return;
}
-/*
- if (track.IsPlaying || pti.IsDownloaded) {
- text_cell.Sensitive = true;
- } else {
- text_cell.Sensitive = false;
- }
-*/
+
+ track.Enabled = track.IsPlaying || pti.IsDownloaded;
}
}
}
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs
index f677019..246c849 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs
@@ -141,8 +141,7 @@ namespace Banshee.Paas
PaasItem pi = item as PaasItem;
return (pi != null) ?
- service.DownloadManager.CheckActiveDownloadStatus (pi.DbId) :
- TaskState.None;
+ service.DownloadManager.CheckActiveDownloadStatus (pi.DbId) : TaskState.None;
}
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]