banshee r3208 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Playlist src/Core/Banshee.Services/Banshee.Sources src/Core/Banshee.ThickClient/Banshee.Gui



Author: gburt
Date: Sun Feb 10 21:36:31 2008
New Revision: 3208
URL: http://svn.gnome.org/viewvc/banshee?rev=3208&view=rev

Log:
2008-02-10  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs:
	* src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs:
	* src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs:
	* src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs:
	Fix some compiler warnings.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs
   trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs
   trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/AbstractPlaylistSource.cs	Sun Feb 10 21:36:31 2008
@@ -49,7 +49,6 @@
     public abstract class AbstractPlaylistSource : DatabaseSource
     {
         protected int? dbid;
-        private static string icon_name;
 
         protected abstract string SourceTable { get; }
         protected abstract string SourcePrimaryKey { get; }
@@ -105,7 +104,7 @@
                 Update ();
         }
 
-        public void UserNotifyUpdated ()
+        public void NotifyUpdated ()
         {
             OnUserNotifyUpdated ();
         }

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Playlist/PlaylistSource.cs	Sun Feb 10 21:36:31 2008
@@ -49,11 +49,10 @@
 {
     public class PlaylistSource : AbstractPlaylistSource, IUnmapableSource
     {
-        private static HyenaSqliteCommand add_track_command;
+        //private static HyenaSqliteCommand add_track_command;
         private static HyenaSqliteCommand remove_track_command;
         private static HyenaSqliteCommand add_track_range_command;
         private static HyenaSqliteCommand remove_track_range_command;
-        private static HyenaSqliteCommand delete_command;
 
         private static string generic_name = Catalog.GetString ("Playlist");
 
@@ -71,9 +70,9 @@
 
         static PlaylistSource () 
         {
-            add_track_command = new HyenaSqliteCommand (
-                "INSERT INTO CorePlaylistEntries (PlaylistID, TrackID) VALUES (?, ?)"
-            );
+            //add_track_command = new HyenaSqliteCommand (
+            //    "INSERT INTO CorePlaylistEntries (PlaylistID, TrackID) VALUES (?, ?)"
+            //);
 
             remove_track_command = new HyenaSqliteCommand (
                 "DELETE FROM CorePlaylistEntries WHERE PlaylistID = ? AND TrackID = ?"

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs	Sun Feb 10 21:36:31 2008
@@ -194,7 +194,6 @@
         protected void AfterInitialized ()
         {
             Reload ();
-            //track_model.Reloaded += OnTrackModelReloaded;
             OnSetupComplete ();
         }
 
@@ -225,14 +224,5 @@
 
 #endregion
 
-#region Private Methods
-
-        private void OnTrackModelReloaded (object o, EventArgs args)
-        {
-            OnUpdated ();
-        }
-
-#endregion
-
     }
 }

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	Sun Feb 10 21:36:31 2008
@@ -139,7 +139,7 @@
             PlaylistSource playlist = new PlaylistSource ("New Playlist");
             playlist.Save ();
             ServiceManager.SourceManager.DefaultSource.AddChildSource (playlist);
-            playlist.UserNotifyUpdated ();
+            playlist.NotifyUpdated ();
 
             // TODO should begin editing the name after making it, but this changed
             // the ActiveSource to the new playlist and we don't want that.



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