[f-spot] Spelling fix and minor code tweaks
- From: Stephen Shaw <sshaw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Spelling fix and minor code tweaks
- Date: Thu, 30 May 2013 05:59:21 +0000 (UTC)
commit d5eea6bbb3221e2c4166b6b251c4ab00868a7d9a
Author: Stephen Shaw <sshaw decriptor com>
Date: Wed May 29 23:59:11 2013 -0600
Spelling fix and minor code tweaks
src/Clients/MainApp/FSpot/ColorManagement.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/MainApp/FSpot/ColorManagement.cs b/src/Clients/MainApp/FSpot/ColorManagement.cs
index 7d3501c..7b19a44 100644
--- a/src/Clients/MainApp/FSpot/ColorManagement.cs
+++ b/src/Clients/MainApp/FSpot/ColorManagement.cs
@@ -35,6 +35,7 @@ using FSpot.Core;
namespace FSpot {
public static class ColorManagement {
+ // FIXME: This should probably be configurable or a little more platform agnostic
static string [] search_dir = { "/usr/share/color/icc", Path.Combine (Global.HomeDirectory,
".color/icc"), "/usr/local/share/color/icc " };
static Dictionary<string, Cms.Profile> profiles;
@@ -71,12 +72,12 @@ namespace FSpot {
{
//recursive search, only RGB color profiles would be added
if (Directory.Exists (path)) {
- string[] IccColorProfilList = System.IO.Directory.GetFiles (path, "*.icc");
- foreach (string ColorProfilePath in IccColorProfilList) {
+ string[] IccColorProfileList = System.IO.Directory.GetFiles (path, "*.icc");
+ foreach (string ColorProfilePath in IccColorProfileList) {
try {
Cms.Profile profile = new Cms.Profile (ColorProfilePath);
- if ((Cms.IccColorSpace)profile.ColorSpace ==
Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey
(profile.ProductDescription))
+ if (profile.ColorSpace == Cms.IccColorSpace.Rgb &&
profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
profs.Add(profile.ProductDescription, profile);
}
catch (Cms.CmsException CmsEx)
@@ -88,7 +89,7 @@ namespace FSpot {
foreach (string ColorProfilePath in IcmColorProfilList) {
try {
Cms.Profile profile = new Cms.Profile (ColorProfilePath);
- if ((Cms.IccColorSpace)profile.ColorSpace ==
Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey
(profile.ProductDescription))
+ if (profile.ColorSpace == Cms.IccColorSpace.Rgb &&
profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
profs.Add(profile.ProductDescription, profile);
}
catch (Cms.CmsException CmsEx)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]