[banshee] [Fixup] Fix checkbox not being clickable (bgo#625683)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Fixup] Fix checkbox not being clickable (bgo#625683)
- Date: Sat, 14 Aug 2010 01:37:49 +0000 (UTC)
commit 9cf1c40111bcda48f115925cc8d638291215bb7c
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Aug 13 18:35:48 2010 -0700
[Fixup] Fix checkbox not being clickable (bgo#625683)
.../Banshee.Fixup/Banshee.Fixup/Problem.cs | 10 +++++++++-
src/Extensions/Banshee.Fixup/Banshee.Fixup/View.cs | 3 ++-
src/Hyena | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/Extensions/Banshee.Fixup/Banshee.Fixup/Problem.cs b/src/Extensions/Banshee.Fixup/Banshee.Fixup/Problem.cs
index 0b33abd..8c94ef6 100644
--- a/src/Extensions/Banshee.Fixup/Banshee.Fixup/Problem.cs
+++ b/src/Extensions/Banshee.Fixup/Banshee.Fixup/Problem.cs
@@ -54,6 +54,14 @@ namespace Banshee.Fixup
[DatabaseColumn]
public bool Selected { get; set; }
+ public bool SavedSelected {
+ get { return Selected; }
+ set {
+ Selected = value;
+ Provider.Save (this);
+ }
+ }
+
[DatabaseColumn]
public string SolutionValue { get; set; }
@@ -105,7 +113,7 @@ namespace Banshee.Fixup
public override string ToString ()
{
- return String.Format ("<Problem Id={2} Type={0}>", Id, ProblemType);
+ return String.Format ("<Problem Id={0} Type={1} Selected={2} SolutionValue={3}>", Id, ProblemType, Selected, SolutionValue);
}
public static void Initialize ()
diff --git a/src/Extensions/Banshee.Fixup/Banshee.Fixup/View.cs b/src/Extensions/Banshee.Fixup/Banshee.Fixup/View.cs
index d079aeb..dfa3338 100644
--- a/src/Extensions/Banshee.Fixup/Banshee.Fixup/View.cs
+++ b/src/Extensions/Banshee.Fixup/Banshee.Fixup/View.cs
@@ -72,7 +72,8 @@ namespace Banshee.Fixup
SetModel (model);
ColumnController = new ColumnController ();
- var selected = new ColumnCellCheckBox ("Selected", true);
+ var selected = new ColumnCellCheckBox ("SavedSelected", true);
+ selected.Toggled += (o, a) => model.Reload ();
ColumnController.Add (new Column (Catalog.GetString ("Fix?"), selected, 0));
var summary = new ColumnCellSolutionOptions ();
diff --git a/src/Hyena b/src/Hyena
index f628fc0..fbce49a 160000
--- a/src/Hyena
+++ b/src/Hyena
@@ -1 +1 @@
-Subproject commit f628fc0cb1d01ec7a27f8ee56d322f4b2385f867
+Subproject commit fbce49a712c710e8b78d246b6fb42e4f6ce0aa5d
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]