[longomatch/redesign: 72/75] Fix compilation
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign: 72/75] Fix compilation
- Date: Sun, 6 Feb 2011 13:43:00 +0000 (UTC)
commit 2274853db41a7be8cb7a61799671fea33bce5180
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Feb 6 02:06:21 2011 +0100
Fix compilation
LongoMatch/Gui/Component/PlayerProperties.cs | 4 ++--
.../Gui/TreeView/PlayerPropertiesTreeView.cs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/PlayerProperties.cs b/LongoMatch/Gui/Component/PlayerProperties.cs
index c2525d0..7a8760b 100644
--- a/LongoMatch/Gui/Component/PlayerProperties.cs
+++ b/LongoMatch/Gui/Component/PlayerProperties.cs
@@ -62,7 +62,7 @@ namespace LongoMatch.Gui.Component
weightspinbutton.Value = value.Weight;
heightspinbutton.Value = value.Height;
image.Pixbuf = value.Photo;
- playscombobox.Active = value.Discarded ? 1 : 0;
+ playscombobox.Active = value.Playing ? 0 : 1;
}
get {
return player;
@@ -166,7 +166,7 @@ namespace LongoMatch.Gui.Component
protected virtual void OnPlayscomboboxChanged (object sender, System.EventArgs e)
{
- player.Discarded = playscombobox.ActiveText == Catalog.GetString("No");
+ player.Playing = playscombobox.ActiveText == Catalog.GetString("Yes");
}
diff --git a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
index 7f52d07..5e7468f 100644
--- a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
@@ -125,7 +125,7 @@ namespace LongoMatch.Gui.Component
{
Player player = (Player) model.GetValue(iter, 0);
- (cell as Gtk.CellRendererText).Text = player.Discarded ? Catalog.GetString("No") : Catalog.GetString("Yes");
+ (cell as Gtk.CellRendererText).Text = player.Playing ? Catalog.GetString("Yes") : Catalog.GetString("No");
}
private void RenderNationality(Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]