[f-spot] Allow UFRaw development more than once
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Allow UFRaw development more than once
- Date: Mon, 17 Aug 2009 12:33:57 +0000 (UTC)
commit 9188ba5ad24e0a02e94191f8d9bce8552269daff
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Mon Aug 17 12:07:18 2009 +0200
Allow UFRaw development more than once
.../Tools/DevelopInUFraw/DevelopInUFRaw.addin.xml | 2 +-
extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs | 16 +++++++++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.addin.xml b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.addin.xml
index ad6a7e0..4881868 100644
--- a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.addin.xml
+++ b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.addin.xml
@@ -1,6 +1,6 @@
<Addin namespace="FSpot"
id="DevelopInUFraw"
- version="0.6.0.1"
+ version="0.6.0.2"
name="DevelopInUFRaw"
description="Develop the image in UFRaw, saves the result as a new version\n\nNote: Require ufraw 0.13 or CVS version newer than 2007-09-06 !!!"
author="Stephane Delcroix"
diff --git a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
index c215f5e..e97d97a 100644
--- a/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
+++ b/extensions/Tools/DevelopInUFraw/DevelopInUFRaw.cs
@@ -155,7 +155,21 @@ namespace DevelopInUFRawExtension
private static string GetVersionName (Photo p)
{
- return Catalog.GetString ("Developed in UFRaw");
+ int num = 1;
+
+ while (true) {
+ string name = Catalog.GetPluralString ("Developed in UFRaw",
+ "Developed in UFRaw ({0})",
+ num);
+ name = String.Format (name, num);
+
+ if (! p.VersionNameExists (name))
+ return name;
+
+ num ++;
+ }
+
+ return null;
}
private System.Uri GetUriForVersionName (Photo p, string version_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]