[Pkg-cli-apps-commits] [SCM] banshee branch, master, updated. debian/1.9.6-1-17-g5adb0dd

Chow Loong Jin hyperair at ubuntu.com
Wed Apr 13 02:23:28 UTC 2011


The following commit has been merged in the master branch:
commit 5809dc3a7fb3e94acbe4c6c8d4092589dc6e4c3b
Author: Christopher James Halse Rogers <raof at ubuntu.com>
Date:   Wed Apr 13 09:19:35 2011 +0800

    Cherry-pick CPU-usage reduction patches from stable-2.0
    
    Signed-off-by: Chow Loong Jin <hyperair at ubuntu.com>

diff --git a/debian/patches/11_reduce_cpu_usage.patch b/debian/patches/11_reduce_cpu_usage.patch
new file mode 100644
index 0000000..310dc76
--- /dev/null
+++ b/debian/patches/11_reduce_cpu_usage.patch
@@ -0,0 +1,67 @@
+commit cdff2efe25758edc9ce33d0feb62e6e635273e8d
+Author: Gabriel Burt <gabriel.burt at gmail.com>
+Date:   Fri Apr 8 11:42:36 2011 -0500
+
+    StreamPositionLabel: Avoid unnecessary redraws (bgo#647144)
+    
+    Ignore attempts to set the label to its current value.
+
+diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+index fdb1293..a31a21c 100644
+--- a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
++++ b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+@@ -174,12 +174,14 @@ namespace Banshee.Widgets
+             }
+         }
+ 
++        private string last_text;
+         private void UpdateLabel (string text)
+         {
+-            if (!IsRealized || layout == null) {
++            if (!IsRealized || layout == null || text == last_text) {
+                 return;
+             }
+ 
++            last_text = text;
+             layout.SetMarkup (String.Format (format_string, GLib.Markup.EscapeText (text)));
+             QueueResize ();
+         }
+
+commit fb9cb9970cb0b35f5bee0d543e6622b4e2dcbcad
+Author: Christopher James Halse Rogers <chrishr at src.gnome.org>
+Date:   Fri Apr 8 16:34:37 2011 +1000
+
+    StreamPositionLabel: Drop unnecessary redraws (bgo#647144)
+    
+    UpdateLabel calls QueueResize, which causes an expose event anyway.
+    
+    Signed-off-by: Gabriel Burt <gabriel.burt at gmail.com>
+
+diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+index e8e3748..fdb1293 100644
+--- a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
++++ b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+@@ -202,7 +202,6 @@ namespace Banshee.Widgets
+             set {
+                 buffering_progress = Math.Max (0.0, Math.Min (1.0, value));
+                 UpdateLabel ();
+-                QueueDraw ();
+             }
+         }
+ 
+@@ -228,7 +227,6 @@ namespace Banshee.Widgets
+                 if (state != value) {
+                     state = value;
+                     UpdateLabel ();
+-                    QueueDraw ();
+                 }
+             }
+         }
+@@ -239,7 +237,6 @@ namespace Banshee.Widgets
+                 if (is_live != value) {
+                     is_live = value;
+                     UpdateLabel ();
+-                    QueueDraw ();
+                 }
+             }
+         }
diff --git a/debian/patches/series b/debian/patches/series
index 767b4c9..0074c66 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,4 +9,5 @@
 08_remove_unrelevant_media.patch
 0001-Revert-ArtworkManager-Cache-null-artwork-for-fast-lo.patch
 10_bind-to-loopback-for-daap
+11_reduce_cpu_usage.patch
 99_ltmain_as-needed.patch

-- 
banshee



More information about the Pkg-cli-apps-commits mailing list