[banshee] Use StockIds for playback action a11y (BGO #595294)



commit 5c505abccafcd163dc428b53bd3e2ffa76774101
Author: Eitan Isaacson <eitan ascender com>
Date:   Sat Sep 26 11:41:00 2009 -0700

    Use StockIds for playback action a11y (BGO #595294)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Gui/PlaybackActions.cs                 |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
index 789333c..ae35070 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
@@ -103,10 +103,10 @@ namespace Banshee.Gui
             this["RestartSongAction"].Sensitive = false;
             this["SeekToAction"].Sensitive = false;
             
-            this["PlayPauseAction"].IconName = "media-playback-start";
-            this["NextAction"].IconName = "media-skip-forward";
-            this["PreviousAction"].IconName = "media-skip-backward";
-            
+            this["PlayPauseAction"].StockId = Gtk.Stock.MediaPlay;
+            this["NextAction"].StockId = Gtk.Stock.MediaNext;
+            this["PreviousAction"].StockId = Gtk.Stock.MediaPrevious;
+
             ServiceManager.PlayerEngine.ConnectEvent (OnPlayerEvent, 
                 PlayerEvent.Error | 
                 PlayerEvent.EndOfStream | 
@@ -188,19 +188,19 @@ namespace Banshee.Gui
         private void ShowPause ()
         {
             play_pause_action.Label = Catalog.GetString ("_Pause");
-            play_pause_action.IconName = "media-playback-pause";
+            play_pause_action.StockId = Gtk.Stock.MediaPause;
         }
         
         private void ShowPlay ()
         {
             play_pause_action.Label = Catalog.GetString ("_Play");
-            play_pause_action.IconName = "media-playback-start";
+            play_pause_action.StockId = Gtk.Stock.MediaPlay;
         }
                 
         private void ShowStop ()
         {
             play_pause_action.Label = Catalog.GetString ("Sto_p");
-            play_pause_action.IconName = "media-playback-stop";
+            play_pause_action.StockId = Gtk.Stock.MediaStop;
         }
                 
         private void OnPlayPauseAction (object o, EventArgs args)



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