[banshee] Fixup: allow status msg tweaks by solvers (bgo#734187)



commit 391a58eab76cced3f3b7ac5e2a6723df3adf6b22
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Mon Aug 4 13:51:24 2014 +0200

    Fixup: allow status msg tweaks by solvers (bgo#734187)
    
    Signed-off-by: Andrés G. Aragoneses <knocte gmail com>

 .../Banshee.Fixup/Banshee.Fixup/FixSource.cs       |    6 ++++++
 .../Banshee.Fixup/Banshee.Fixup/Solver.cs          |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Fixup/Banshee.Fixup/FixSource.cs 
b/src/Extensions/Banshee.Fixup/Banshee.Fixup/FixSource.cs
index c7c0352..8b0d22f 100644
--- a/src/Extensions/Banshee.Fixup/Banshee.Fixup/FixSource.cs
+++ b/src/Extensions/Banshee.Fixup/Banshee.Fixup/FixSource.cs
@@ -116,6 +116,12 @@ namespace Banshee.Fixup
             return true;
         }
 
+        public override void  SetStatus (string message, bool can_close, bool is_spinning, string icon_name)
+        {
+            base.SetStatus (message, can_close, is_spinning, icon_name);
+            problem_model.Solver.SetStatus (status_message, PreferencesPageId);
+        }
+
         public override string PreferencesPageId {
             get { return page == null ? String.Empty : page.Id; }
         }
diff --git a/src/Extensions/Banshee.Fixup/Banshee.Fixup/Solver.cs 
b/src/Extensions/Banshee.Fixup/Banshee.Fixup/Solver.cs
index dd66fd8..69b5d7f 100644
--- a/src/Extensions/Banshee.Fixup/Banshee.Fixup/Solver.cs
+++ b/src/Extensions/Banshee.Fixup/Banshee.Fixup/Solver.cs
@@ -32,6 +32,7 @@ using Mono.Unix;
 
 using Hyena.Data.Sqlite;
 
+using Banshee.Sources;
 using Banshee.ServiceStack;
 using Banshee.Configuration;
 
@@ -109,6 +110,10 @@ namespace Banshee.Fixup
 
         protected abstract void IdentifyCore ();
         public abstract void Fix (IEnumerable<Problem> problems);
+
+        public virtual void SetStatus (SourceMessage status_message, string preferences_page_id)
+        {
+        }
     }
 
     public abstract class DuplicateSolver : Solver


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