[Pkg-cli-apps-commits] [SCM] banshee-community-extensions branch, master, updated. debian/2.2.0-1-5-g440845d

Chow Loong Jin hyperair at debian.org
Fri Jan 27 05:19:47 UTC 2012


The following commit has been merged in the master branch:
commit fb763e74ade0777d4b03c81384d2a1fc06f33513
Author: Chow Loong Jin <hyperair at ubuntu.com>
Date:   Thu Nov 10 09:41:06 2011 +0800

    Cherry-pick LiveRadio crash-fix
    
    LP: #881902

diff --git a/debian/patches/0001-LiveRadio-prevent-crash-when-updating-GUI-by-using-H.patch b/debian/patches/0001-LiveRadio-prevent-crash-when-updating-GUI-by-using-H.patch
new file mode 100644
index 0000000..9bc8d0f
--- /dev/null
+++ b/debian/patches/0001-LiveRadio-prevent-crash-when-updating-GUI-by-using-H.patch
@@ -0,0 +1,44 @@
+From 9a12ca50a75ff39c06f029a747b677d361a72d86 Mon Sep 17 00:00:00 2001
+From: Frank Ziegler <funtastix at googlemail.com>
+Date: Sun, 16 Oct 2011 16:10:28 +0700
+Subject: [PATCH] [LiveRadio] prevent crash when updating GUI by using
+ Hyena.ThreadAssist methods
+
+---
+ .../LiveRadioPluginSourceContents.cs               |   20 +++++++++++---------
+ 1 files changed, 11 insertions(+), 9 deletions(-)
+
+diff --git a/src/LiveRadio/Banshee.LiveRadio/LiveRadioPluginSourceContents.cs b/src/LiveRadio/Banshee.LiveRadio/LiveRadioPluginSourceContents.cs
+index 05ad12d..6714441 100644
+--- a/src/LiveRadio/Banshee.LiveRadio/LiveRadioPluginSourceContents.cs
++++ b/src/LiveRadio/Banshee.LiveRadio/LiveRadioPluginSourceContents.cs
+@@ -243,15 +243,17 @@ namespace Banshee.LiveRadio
+         /// </param>
+         void OnPluginGenreListLoaded (object sender, List<Genre> genres)
+         {
+-            if (genres.Count > 0) {
+-                filter_box.UpdateGenres (genres);
+-                filter_box.Sensitive = true;
+-            } else {
+-                List<Genre> fakeresult = new List<Genre> ();
+-                fakeresult.Add (new Genre(AddinManager.CurrentLocalizer.GetString("Error... Please Reload")));
+-                filter_box.UpdateGenres (fakeresult);
+-                filter_box.Sensitive = false;
+-            }
++            Hyena.ThreadAssist.ProxyToMain (delegate {
++                if (genres.Count > 0) {
++                    filter_box.UpdateGenres (genres);
++                    filter_box.Sensitive = true;
++                } else {
++                    List<Genre> fakeresult = new List<Genre> ();
++                    fakeresult.Add (new Genre(AddinManager.CurrentLocalizer.GetString("Error... Please Reload")));
++                    filter_box.UpdateGenres (fakeresult);
++                    filter_box.Sensitive = false;
++                }
++            });
+         }
+ 
+         /// <summary>
+-- 
+1.7.5.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 41d2436..6297710 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001-LiveRadio-prevent-crash-when-updating-GUI-by-using-H.patch
 fsck-intltool.patch

-- 
banshee-community-extensions



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