[nautilus-actions] Make sure there is no bad use between properties and GConf keys



commit 99dc247314e38db80de62e0109cd116ca9f7a96d
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Jun 29 19:41:38 2009 +0200

    Make sure there is no bad use between properties and GConf keys
    
    Action and profile properties use to be the same that GConf entry keys.
    Give some special spelling to properties in order to be sure that we use
    good strings in relevant places.

 src/common/na-action-profile.h |   26 ++++++++++++--------------
 src/common/na-action.h         |   16 +++++++---------
 2 files changed, 19 insertions(+), 23 deletions(-)
---
diff --git a/src/common/na-action-profile.h b/src/common/na-action-profile.h
index 168bff4..968dd37 100644
--- a/src/common/na-action-profile.h
+++ b/src/common/na-action-profile.h
@@ -69,21 +69,19 @@ typedef struct {
 	NAActionProfileClass;
 
 /* instance properties
- * please note that property names must have the same spelling as the
- * NactIIOProvider parameters
  */
-#define PROP_PROFILE_ACTION_STR					"action"
-#define PROP_PROFILE_NAME_STR					"name"
-#define PROP_PROFILE_LABEL_STR					"desc-name"
-#define PROP_PROFILE_PATH_STR					"path"
-#define PROP_PROFILE_PARAMETERS_STR				"parameters"
-#define PROP_PROFILE_ACCEPT_MULTIPLE_STR		"accept-multiple-files"
-#define PROP_PROFILE_BASENAMES_STR				"basenames"
-#define PROP_PROFILE_ISDIR_STR					"isdir"
-#define PROP_PROFILE_ISFILE_STR					"isfile"
-#define PROP_PROFILE_MATCHCASE_STR				"matchcase"
-#define PROP_PROFILE_MIMETYPES_STR				"mimetypes"
-#define PROP_PROFILE_SCHEMES_STR				"schemes"
+#define PROP_PROFILE_ACTION_STR					"profile-action"
+#define PROP_PROFILE_NAME_STR					"profile-name"
+#define PROP_PROFILE_LABEL_STR					"profile-desc-name"
+#define PROP_PROFILE_PATH_STR					"profile-path"
+#define PROP_PROFILE_PARAMETERS_STR				"profile-parameters"
+#define PROP_PROFILE_ACCEPT_MULTIPLE_STR		"profile-accept-multiple-files"
+#define PROP_PROFILE_BASENAMES_STR				"profile-basenames"
+#define PROP_PROFILE_ISDIR_STR					"profile-isdir"
+#define PROP_PROFILE_ISFILE_STR					"profile-isfile"
+#define PROP_PROFILE_MATCHCASE_STR				"profile-matchcase"
+#define PROP_PROFILE_MIMETYPES_STR				"profile-mimetypes"
+#define PROP_PROFILE_SCHEMES_STR				"profile-schemes"
 
 GType            na_action_profile_get_type( void );
 
diff --git a/src/common/na-action.h b/src/common/na-action.h
index 236bbad..fac3c3c 100644
--- a/src/common/na-action.h
+++ b/src/common/na-action.h
@@ -68,16 +68,14 @@ typedef struct {
 	NAActionClass;
 
 /* instance properties
- * please note that property names must have the same spelling as the
- * NactIIOProvider parameters
  */
-#define PROP_ACTION_UUID_STR			"uuid"
-#define PROP_ACTION_VERSION_STR			"version"
-#define PROP_ACTION_LABEL_STR			"label"
-#define PROP_ACTION_TOOLTIP_STR			"tooltip"
-#define PROP_ACTION_ICON_STR			"icon"
-#define PROP_ACTION_READONLY_STR		"read-only"
-#define PROP_ACTION_PROVIDER_STR		"provider"
+#define PROP_ACTION_UUID_STR			"action-uuid"
+#define PROP_ACTION_VERSION_STR			"action-version"
+#define PROP_ACTION_LABEL_STR			"action-label"
+#define PROP_ACTION_TOOLTIP_STR			"action-tooltip"
+#define PROP_ACTION_ICON_STR			"action-icon"
+#define PROP_ACTION_READONLY_STR		"action-read-only"
+#define PROP_ACTION_PROVIDER_STR		"action-provider"
 
 GType     na_action_get_type( void );
 



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