[banshee/podcast-ng: 90/90] [podcast-ng] Minor bug fixes and corrections
- From: Michael C. Urbanski <murbanski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/podcast-ng: 90/90] [podcast-ng] Minor bug fixes and corrections
- Date: Sun, 9 Jan 2011 07:01:12 +0000 (UTC)
commit 1e43b2afc479da5e4c11543f455cb4273c6d165d
Author: Mike Urbanski <michael c urbanski gmail com>
Date: Sun Jan 9 00:57:13 2011 -0600
[podcast-ng] Minor bug fixes and corrections
SourceView.HideCount is now set to false in PaasSource.
Item count string uses term 'episode' now.
Updated search entry string.
Fixed track search crash.
.../Banshee.Paas/Banshee.Paas.Gui/PaasActions.cs | 2 +
.../Banshee.Paas/Banshee.Paas/PaasSource.cs | 25 +++++++++++++++++--
2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasActions.cs b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasActions.cs
index c443965..0ca87d3 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasActions.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas.Gui/PaasActions.cs
@@ -323,6 +323,8 @@ namespace Banshee.Paas.Gui
UpdateAction ("PaasItemMarkOldAction", show_mark_old);
UpdateAction ("PaasItemLinkAction", (ActiveDbSource.TrackModel.Selection.Count == 1));
+
+ Actions["Track.SearchMenuAction"].Visible = false;
}
public void UpdateChannelActions ()
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 246c849..bb2c284 100644
--- a/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs
+++ b/src/Extensions/Banshee.Paas/Banshee.Paas/Banshee.Paas/PaasSource.cs
@@ -94,6 +94,10 @@ namespace Banshee.Paas
get { return channel_model; }
}
+ public PaasTrackListModel PaasTrackModel {
+ get; private set;
+ }
+
public override string PreferencesPageId {
get { return UniqueId; }
}
@@ -120,8 +124,12 @@ namespace Banshee.Paas
Properties.SetString ("Icon.Name", "podcast");
+ Properties.Set<bool> ("SourceView.HideCount", false);
+ Properties.Set<string> ("SearchEntryDescription", Catalog.GetString ("Search your podcasts"));
+
Properties.SetString ("ActiveSourceUIResource", "ActiveSourceUI.xml");
- Properties.Set<bool> ("ActiveSourceUIResourcePropagate", false);
+ Properties.Set<bool> ("ActiveSourceUIResourcePropagate", true);
+
Properties.Set<System.Reflection.Assembly> ("ActiveSourceUIResource.Assembly", typeof(PaasSource).Assembly);
Properties.SetString ("GtkActionPath", "/PaasSourcePopup");
@@ -132,7 +140,7 @@ namespace Banshee.Paas
(contents.TrackView as PaasItemView).FuckedPopupMenu += OnItemViewFuckedPopupMenuHandler;
Properties.Set<ISourceContents> ("Nereid.SourceContents", contents);
- Properties.Set<bool> ("Nereid.SourceContentsPropagate", false);
+ Properties.Set<bool> ("Nereid.SourceContentsPropagate", true);
PaasColumnController column_controller = new PaasColumnController ();
@@ -255,7 +263,18 @@ namespace Banshee.Paas
protected override DatabaseTrackListModel CreateTrackModelFor (DatabaseSource src)
{
- return new PaasTrackListModel (ServiceManager.DbConnection, DatabaseTrackInfo.Provider, src);
+ var model = new PaasTrackListModel (ServiceManager.DbConnection, DatabaseTrackInfo.Provider, src);
+
+ if (PaasTrackModel == null) {
+ PaasTrackModel = model;
+ }
+
+ return model;
+ }
+
+ public override string GetPluralItemCountString (int count)
+ {
+ return Catalog.GetPluralString ("{0} episode", "{0} episodes", count);
}
[GLib.ConnectBefore]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]