banshee r3554 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Streaming src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs



Author: gburt
Date: Wed Mar 26 17:46:29 2008
New Revision: 3554
URL: http://svn.gnome.org/viewvc/banshee?rev=3554&view=rev

Log:
2008-03-26  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Core/Banshee.Streaming/SaveTrackMetadataJob.cs: Port
	fix for Artist tag saving from stable.

	* src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/TrackEditor.cs: Remove
	artist/album readonly warning, whitespace fixes.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/SaveTrackMetadataJob.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/TrackEditor.cs

Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/SaveTrackMetadataJob.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/SaveTrackMetadataJob.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/SaveTrackMetadataJob.cs	Wed Mar 26 17:46:29 2008
@@ -56,7 +56,7 @@
         
             // Note: this should be kept in sync with the metadata read in StreamTagger.cs
             TagLib.File file = StreamTagger.ProcessUri(track.Uri);
-            file.Tag.AlbumArtists = new string [] { track.ArtistName };
+            file.Tag.Performers = new string [] { track.ArtistName };
             file.Tag.Album = track.AlbumTitle;
             file.Tag.Genres = new string [] { track.Genre };
             file.Tag.Title = track.TrackTitle;

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/TrackEditor.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/TrackEditor.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/TrackEditor.cs	Wed Mar 26 17:46:29 2008
@@ -116,7 +116,6 @@
     public class TrackEditor : GladeWindow
     {
         [Widget] private Notebook EditorNotebook;
-        [Widget] private VBox EditorVBox;
         [Widget] private Button CancelButton;
         [Widget] private Button SaveButton;
         [Widget] private Button Previous;
@@ -174,13 +173,6 @@
                     TrackSet.Add(new EditorTrack(track));
             }
             
-            Label notice = new Label ();
-            notice.Wrap = true;
-            notice.Markup = "<i>Note: The artist and album fields are not editable in this preview release.</i>";
-            notice.ShowAll ();
-            EditorVBox.PackStart (notice, false, true, 6);
-            EditorVBox.ReorderChild (notice, 0);
-            
             rating_entry.Show();
             (Glade["RatingLabel"] as Label).MnemonicWidget = rating_entry;
             RatingContainer.PackStart(rating_entry, false, false, 0);
@@ -613,27 +605,26 @@
             Window.Destroy();
         }
         
-        private void SaveTrack(EditorTrack track, bool writeToDatabase)
+        private void SaveTrack (EditorTrack track, bool writeToDatabase)
         {
-            track.Save();
+            track.Save ();
             
-            if(writeToDatabase) {
-                track.Track.Save();
+            if (writeToDatabase) {
+                track.Track.Save ();
                 
-                if(LibrarySchema.WriteMetadata.Get()) {
-                    SaveToFile(track);
+                if (LibrarySchema.WriteMetadata.Get ()) {
+                    SaveToFile (track);
                 }
             }
                 
-            if(track.Track == ServiceManager.PlayerEngine.CurrentTrack) {
-                ServiceManager.PlayerEngine.TrackInfoUpdated();
+            if (track.Track == ServiceManager.PlayerEngine.CurrentTrack) {
+                ServiceManager.PlayerEngine.TrackInfoUpdated ();
             }
         }
         
-        private void SaveToFile(EditorTrack track)
+        private void SaveToFile (EditorTrack track)
         {
-            Banshee.Kernel.Scheduler.Schedule(new SaveTrackMetadataJob(track.Track), 
-                Banshee.Kernel.JobPriority.Highest);
+            Banshee.Kernel.Scheduler.Schedule (new SaveTrackMetadataJob (track.Track), Banshee.Kernel.JobPriority.Highest);
         }
     }
 }



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