[banshee] [ThickClient] HIGify subtitle menu, desensitive for audio
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [ThickClient] HIGify subtitle menu, desensitive for audio
- Date: Fri, 3 Dec 2010 19:32:01 +0000 (UTC)
commit 17708196a34ac50894f3dbb8aba5f9ea05e41b41
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Dec 3 13:30:08 2010 -0600
[ThickClient] HIGify subtitle menu, desensitive for audio
.../Banshee.Gui/PlaybackActions.cs | 4 +++-
.../Banshee.Gui/PlaybackSubtitleActions.cs | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
index 02de26d..5c9844b 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
@@ -121,7 +121,7 @@ namespace Banshee.Gui
repeat_actions = new PlaybackRepeatActions (Actions);
shuffle_actions = new PlaybackShuffleActions (Actions, this);
- subtitle_actions = new PlaybackSubtitleActions (Actions);
+ subtitle_actions = new PlaybackSubtitleActions (Actions) { Sensitive = false };
}
private void OnPlayerEvent (PlayerEventArgs args)
@@ -152,6 +152,7 @@ namespace Banshee.Gui
switch (args.Current) {
case PlayerState.Loaded:
ShowStopAction ();
+ subtitle_actions.Sensitive = ServiceManager.PlayerEngine.CurrentTrack.HasAttribute (TrackMediaAttributes.VideoStream);
subtitle_actions.ReloadEmbeddedSubtitle ();
break;
case PlayerState.Contacting:
@@ -163,6 +164,7 @@ namespace Banshee.Gui
ShowPlay ();
break;
case PlayerState.Idle:
+ subtitle_actions.Sensitive = false;
ShowPlay ();
break;
default:
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackSubtitleActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackSubtitleActions.cs
index 73a8bc9..749b8cc 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackSubtitleActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackSubtitleActions.cs
@@ -62,7 +62,7 @@ namespace Banshee.Gui
Catalog.GetString ("Subtitle"), null,
Catalog.GetString ("Subtitle"), null),
new ActionEntry ("LoadSubtitleAction", null,
- Catalog.GetString ("Load subtitle"), null,
+ Catalog.GetString ("Load File..."), null,
Catalog.GetString ("Load subtitle file"), OnLoadSubtitleAction)
});
@@ -76,7 +76,7 @@ namespace Banshee.Gui
private void OnLoadSubtitleAction (object o, EventArgs args)
{
var chooser = new Banshee.Gui.Dialogs.FileChooserDialog (
- Catalog.GetString ("Load Subtitle"),
+ Catalog.GetString ("Load Subtitle File"),
ServiceManager.Get<Banshee.Gui.GtkElementsService> ().PrimaryWindow,
FileChooserAction.Open
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]