banshee r4282 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui



Author: gburt
Date: Tue Jul 29 15:23:30 2008
New Revision: 4282
URL: http://svn.gnome.org/viewvc/banshee?rev=4282&view=rev

Log:
2008-07-29  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs: Fix bug
	where IsLive tracks wouldn't change the play icon to stop (BGO #539021).


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs	Tue Jul 29 15:23:30 2008
@@ -138,7 +138,7 @@
             if (play_pause_action == null) {
                 play_pause_action = Actions["Playback.PlayPauseAction"];
             }
-            
+
             switch (args.Current) {
                 case PlayerState.Contacting:
                 case PlayerState.Playing:
@@ -178,7 +178,7 @@
             if (ServiceManager.PlayerEngine.CanPause) {
                 ShowPause ();
             } else {
-                ShowPlay ();
+                ShowStop ();
             }
         }
         
@@ -194,6 +194,12 @@
             play_pause_action.IconName = "media-playback-start";
         }
                 
+        private void ShowStop ()
+        {
+            play_pause_action.Label = Catalog.GetString ("Sto_p");
+            play_pause_action.IconName = "media-playback-stop";
+        }
+                
         private void OnPlayPauseAction (object o, EventArgs args)
         {
             ServiceManager.PlayerEngine.TogglePlaying ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]