[longomatch] Add the plays count in the the list widget
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add the plays count in the the list widget
- Date: Wed, 29 Sep 2010 20:45:41 +0000 (UTC)
commit 5451d6aafa7bb55e85675e86da2c59e9f19e7b7a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Sep 21 14:45:28 2010 +0200
Add the plays count in the the list widget
LongoMatch/Gui/TreeView/ListTreeViewBase.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Gui/TreeView/ListTreeViewBase.cs b/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
index 44ae2b0..d2faed5 100644
--- a/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
+++ b/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
@@ -268,11 +268,11 @@ namespace LongoMatch.Gui.Component
}else if (o is Player) {
c.Background = "white";
c.CellBackground = "white";
- c.Markup = (o as Player).Name;
+ c.Markup = String.Format("{0} ({1})", (o as Player).Name, Model.IterNChildren(iter));
}else if (o is SectionsTimeNode) {
- c.Markup = (o as TimeNode).Name;
c.Background = "white";
c.CellBackground = "white";
+ c.Markup = String.Format("{0} ({1})", (o as TimeNode).Name, Model.IterNChildren(iter));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]