[banshee] TrackActions: Use "" instead of null for empty accels (bgo#657565)



commit 346b7ccc1292641ed6af947ba280deeb987db421
Author: Chow Loong Jin <hyperair ubuntu com>
Date:   Mon Aug 29 00:21:46 2011 +0800

    TrackActions: Use "" instead of null for empty accels (bgo#657565)
    
    Setting the accelerator parameter in ActionEntry to null causes the
    accelerator to be uneditable. So we set the accelerator to "" instead,
    except for stock actions because we want to keep the default accelerator
    for those.
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../Banshee.Gui/TrackActions.cs                    |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
index 8f6db16..b5d17c7 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
@@ -123,11 +123,11 @@ namespace Banshee.Gui
                     Catalog.GetString ("View information on selected tracks"), OnTrackProperties),
 
                 new ActionEntry ("PlayTrack", null,
-                    Catalog.GetString ("_Play"), null,
+                    Catalog.GetString ("_Play"), "",
                     Catalog.GetString ("Play the selected item"), OnPlayTrack),
 
                 new ActionEntry ("AddToPlaylistAction", null,
-                    Catalog.GetString ("Add _to Playlist"), null,
+                    Catalog.GetString ("Add _to Playlist"), "",
                     Catalog.GetString ("Append selected items to playlist or create new playlist from selection"),
                     OnAddToPlaylistMenu),
 
@@ -145,11 +145,11 @@ namespace Banshee.Gui
                     Catalog.GetString ("Remove selected track(s) from library"), OnRemoveTracksFromLibrary),
 
                 new ActionEntry ("OpenContainingFolderAction", null,
-                    Catalog.GetString ("_Open Containing Folder"), null,
+                    Catalog.GetString ("_Open Containing Folder"), "",
                     Catalog.GetString ("Open the folder that contains the selected item"), OnOpenContainingFolder),
 
                 new ActionEntry ("DeleteTracksFromDriveAction", null,
-                    Catalog.GetString ("_Delete From Drive"), null,
+                    Catalog.GetString ("_Delete From Drive"), "",
                     Catalog.GetString ("Permanently delete selected item(s) from medium"), OnDeleteTracksFromDrive),
 
                 new ActionEntry ("RateTracksAction", null,
@@ -160,11 +160,11 @@ namespace Banshee.Gui
                     Catalog.GetString ("Search for items matching certain criteria"), null),
 
                 new ActionEntry ("SearchForSameAlbumAction", null,
-                    Catalog.GetString ("By Matching _Album"), null,
+                    Catalog.GetString ("By Matching _Album"), "",
                     Catalog.GetString ("Search all songs of this album"), OnSearchForSameAlbum),
 
                 new ActionEntry ("SearchForSameArtistAction", null,
-                    Catalog.GetString ("By Matching A_rtist"), null,
+                    Catalog.GetString ("By Matching A_rtist"), "",
                     Catalog.GetString ("Search all songs of this artist"), OnSearchForSameArtist),
             });
 



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