[banshee] [Source] Make PushMessage public



commit 62769fdb11228aeb96ba21dd27ef1c0b5c637f72
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Aug 12 18:51:40 2010 -0700

    [Source] Make PushMessage public

 .../Banshee.Services/Banshee.Sources/Source.cs     |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/Source.cs b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
index 5ef8643..8be332f 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/Source.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/Source.cs
@@ -361,8 +361,7 @@ namespace Banshee.Sources
             }
         }
 
-
-        protected virtual void PushMessage (SourceMessage message)
+        public void PushMessage (SourceMessage message)
         {
             lock (this) {
                 messages.Insert (0, message);
@@ -372,7 +371,7 @@ namespace Banshee.Sources
             OnMessageNotify ();
         }
 
-        protected virtual SourceMessage PopMessage ()
+        protected SourceMessage PopMessage ()
         {
             try {
                 lock (this) {
@@ -390,7 +389,7 @@ namespace Banshee.Sources
             }
         }
 
-        protected virtual void ClearMessages ()
+        protected void ClearMessages ()
         {
             lock (this) {
                 if (messages.Count > 0) {
@@ -443,7 +442,7 @@ namespace Banshee.Sources
             });
         }
 
-        protected virtual void RemoveMessage (SourceMessage message)
+        public void RemoveMessage (SourceMessage message)
         {
             lock (this) {
                 if (messages.Remove (message)) {
@@ -554,7 +553,7 @@ namespace Banshee.Sources
         public string UniqueId {
             get {
                 if (unique_id == null && type_unique_id == null) {
-                    Log.ErrorFormat ("Creating Source.UniqueId for {0}, but TypeUniqueId is null; trace is {1}", this.Name, System.Environment.StackTrace);
+                    Log.ErrorFormat ("Creating Source.UniqueId for {0} (type {1}), but TypeUniqueId is null; trace is {2}", this.Name, GetType ().Name, System.Environment.StackTrace);
                 }
                 return unique_id ?? (unique_id = String.Format ("{0}-{1}", this.GetType ().Name, TypeUniqueId));
             }



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