[nautilus-actions] Update parameters description in na-object-profile-factory.c



commit b177031bb314c155f6346c5e90e03567207a6b32
Author: pierre <pierre vfedora10 virtuals pwi>
Date:   Thu Aug 5 11:44:52 2010 +0200

    Update parameters description in na-object-profile-factory.c

 ChangeLog                            |    5 +++++
 src/core/na-object-profile-factory.c |   14 ++++++++------
 src/core/na-tokens.h                 |    7 ++++---
 3 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9afff67..8d59b55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-08-05 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-object-profile-factory.c:
+	Review the description of the NAFO_DATA_PARAMETERS data.
+
+	* src/core/na-tokens.h: Update the comment.
+
 	* po/POTFILES.in: Add src/core/na-tokens.c file.
 
 	* src/core/na-tokens.c:
diff --git a/src/core/na-object-profile-factory.c b/src/core/na-object-profile-factory.c
index e162766..a03998f 100644
--- a/src/core/na-object-profile-factory.c
+++ b/src/core/na-object-profile-factory.c
@@ -68,7 +68,7 @@ static NADataDef data_def_profile [] = {
 
 	/* Path and Parameters are two separate data both in GConf, in GConf-derived
 	 * export files and in NACT. Only in desktop files, they are merged as only
-	 * one 'Exec' data.
+	 * one 'Exec' data which is splitted at read time.
 	 */
 	{ NAFO_DATA_PATH,
 				TRUE,
@@ -120,23 +120,25 @@ static NADataDef data_def_profile [] = {
 					"  %U: username of the URI\n" \
 					"  %%: a percent sign." \
 					"- starting from version '3':\n" \
-					"  %b: (first) basename of the selected file(s)/folder(s)\n" \
+					"  %b: (first) basename\n" \
 					"  %B: space-separated list of the basenames of the selected file(s)/folder(s)\n" \
 					"  %c: count the selected file(s)/folder(s)\n" \
-					"  %d: (first) base directory of the selected file(s)/folder(s)\n" \
+					"  %d: (first) base directory\n" \
 					"  %D: space-separated list of base directories of the selected file(s)/folder(s)\n" \
-					"  %f: (first) filename of the selected file(s)/folder(s)\n" \
+					"  %f: (first) filename\n" \
 					"  %F: space-separated list of the filenames of the selected file(s)/folder(s)\n" \
 					"  %h: hostname of the (first) URI\n" \
+					"  %m: (first) mimetype\n" \
+					"  %M: space-separated list of the mimetypes of the selected file(s)/folder(s)\n" \
 					"  %n: username of the (first) URI\n" \
 					"  %p: port number of the (first) URI\n" \
 					"  %s: scheme of the (first) URI\n" \
 					"  %u: (first) URI\n" \
-					"  %U: space-separated list of selected URIs\n" \
+					"  %U: space-separated list of the URIs of the selected file(s)/folder(s)\n" \
 					"  %w: (first) basename without the extension\n" \
 					"  %W: space-separated list of basenames without the extension\n" \
 					"  %x: (first) extension\n" \
-					"  %X: space-separated list of the extensions\n" \
+					"  %X: space-separated list of the extensions of the selected file(s)/folder(s)\n" \
 					"  %%: a percent sign." ),
 				NAFD_TYPE_STRING,
 				"",
diff --git a/src/core/na-tokens.h b/src/core/na-tokens.h
index d8116c4..f4b89d1 100644
--- a/src/core/na-tokens.h
+++ b/src/core/na-tokens.h
@@ -48,9 +48,10 @@
  * plugin, attaching the result to each item in the context menu.
  *
  * Adding a parameter requires updating of :
- * - src/core/na-tokens.c::is_singular_exec()
- * - src/core/na-tokens.c::parse_singular()
- * - src/nact/nautilus-actions-config-tool.ui:LegendDialog
+ * - src/core/na-tokens.c::is_singular_exec() function
+ * - src/core/na-tokens.c::parse_singular() function
+ * - src/nact/nautilus-actions-config-tool.ui:LegendDialog labels
+ * - src/core/na-object-profile-factory.c:NAFO_DATA_PARAMETERS comment
  *
  * Valid parameters are :
  *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]