[longomatch] Deserialize categories color with the new API
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Deserialize categories color with the new API
- Date: Mon, 7 Jul 2014 11:25:01 +0000 (UTC)
commit 22c76398f7fec167c3c47b66a6fad99de7ee9852
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu May 29 01:29:01 2014 +0200
Deserialize categories color with the new API
LongoMatch.Core/Store/Category.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Category.cs b/LongoMatch.Core/Store/Category.cs
index a2564bb..9b233b9 100644
--- a/LongoMatch.Core/Store/Category.cs
+++ b/LongoMatch.Core/Store/Category.cs
@@ -166,7 +166,7 @@ namespace LongoMatch.Store
SubCategories = (List<ISubCategory>)info.GetValue("subcategories",
typeof(List<ISubCategory>));
Position = (Int32) info.GetValue("position", typeof (Int32));
SortMethod = (SortMethodType)info.GetValue("sort_method", typeof(SortMethodType));
- Color = new Color ((ushort)info.GetValue("red", typeof(ushort)),
+ Color = Color.ColorFromUShort ((ushort)info.GetValue("red", typeof(ushort)),
(ushort)info.GetValue("green", typeof(ushort)),
(ushort)info.GetValue("blue", typeof(ushort)));
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]