[nautilus-actions] Refactoring: create src/io-gconf/nagp-keys.c



commit c96bf0d4876a07a492da43e209a2ec659ecf901f
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Feb 15 18:29:13 2010 +0100

    Refactoring: create src/io-gconf/nagp-keys.c

 ChangeLog                |    1 +
 src/io-gconf/nagp-keys.c |   35 ++++++++++++++++++++++++
 src/io-gconf/nagp-keys.h |   67 +++++++++++++++++++--------------------------
 3 files changed, 64 insertions(+), 39 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 168ffb4..a0529d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-02-15 Pierre Wieser <pwieser trychlos org>
 
+	Create src/io-gconf/nagp-keys.c
 	Rename src/io-gconf/nagp-write.{c,h} to src/io-gconf/nagp-writer.{c,h}
 	Rename src/io-gconf/nagp-read.{c,h} to src/io-gconf/nagp-reader.{c,h}
 
diff --git a/src/io-gconf/nagp-keys.c b/src/io-gconf/nagp-keys.c
new file mode 100644
index 0000000..b73e486
--- /dev/null
+++ b/src/io-gconf/nagp-keys.c
@@ -0,0 +1,35 @@
+/*
+ * Nautilus Actions
+ * A Nautilus extension which offers configurable context menu actions.
+ *
+ * Copyright (C) 2005 The GNOME Foundation
+ * Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
+ * Copyright (C) 2009, 2010 Pierre Wieser and others (see AUTHORS)
+ *
+ * This Program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This Program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this Library; see the file COPYING.  If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place,
+ * Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Authors:
+ *   Frederic Ruaudel <grumz grumz net>
+ *   Rodrigo Moya <rodrigo gnome-db org>
+ *   Pierre Wieser <pwieser trychlos org>
+ *   ... and many others (see AUTHORS)
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "nagp-keys.h"
diff --git a/src/io-gconf/nagp-keys.h b/src/io-gconf/nagp-keys.h
index 03fca06..4ff9ba5 100644
--- a/src/io-gconf/nagp-keys.h
+++ b/src/io-gconf/nagp-keys.h
@@ -31,48 +31,37 @@
 #ifndef __NAGP_GCONF_PROVIDER_KEYS_H__
 #define __NAGP_GCONF_PROVIDER_KEYS_H__
 
-#include <nautilus-actions/api/na-gconf-keys.h>
+#define NAGP_CONFIGURATIONS_PATH		"/apps/nautilus-actions/configurations"
+#define NAGP_SCHEMAS_PATH				"/schemas/apps/nautilus-actions"
 
-/* GConf general information
- */
-#define NA_GCONF_CONFIG_PATH			NAUTILUS_ACTIONS_GCONF_BASEDIR "/configurations"
-
-/* GConf key names (common to menu and actions)
- */
-#define OBJECT_ITEM_LABEL_ENTRY					"label"
-#define OBJECT_ITEM_TOOLTIP_ENTRY				"tooltip"
-#define OBJECT_ITEM_ICON_ENTRY					"icon"
-#define OBJECT_ITEM_ENABLED_ENTRY				"enabled"
-#define OBJECT_ITEM_LIST_ENTRY					"items"
-#define OBJECT_ITEM_TYPE_ENTRY					"type"
-#define OBJECT_ITEM_TARGET_SELECTION_ENTRY		"target-selection"
-#define OBJECT_ITEM_TARGET_BACKGROUND_ENTRY		"target-background"
-#define OBJECT_ITEM_TARGET_TOOLBAR_ENTRY		"target-toolbar"
-#define OBJECT_ITEM_TOOLBAR_SAME_LABEL_ENTRY	"toolbar-same-label"
-#define OBJECT_ITEM_TOOLBAR_LABEL_ENTRY			"toolbar-label"
+#define NAGP_ENTRY_TYPE					"type"
+#define NAGP_VALUE_TYPE_MENU			"Menu"
+#define NAGP_VALUE_TYPE_ACTION			"Action"
 
-#define OBJECT_ITEM_TYPE_MENU					"Menu"
-#define OBJECT_ITEM_TYPE_ACTION					"Action"
+#define NAGP_ENTRY_LABEL				"label"
+#define NAGP_ENTRY_TOOLTIP				"tooltip"
+#define NAGP_ENTRY_ICON					"icon"
+#define NAGP_ENTRY_ENABLED				"enabled"
+#define NAGP_ENTRY_ITEMS_LIST			"items"
 
-/* GConf key names (specific to menu)
- */
+#define NAGP_ENTRY_VERSION				"version"
+#define NAGP_ENTRY_TARGET_SELECTION		"target-selection"
+#define NAGP_ENTRY_TARGET_CONTEXT		"target-context"
+#define NAGP_ENTRY_TARGET_BACKGROUND	"target-background"
+#define NAGP_ENTRY_TARGET_TOOLBAR		"target-toolbar"
+#define NAGP_ENTRY_TOOLBAR_LABEL		"toolbar-label"
+#define NAGP_ENTRY_TOOLBAR_SAME_LABEL	"toolbar-same-label"
 
-/* GConf key names (specific to action)
- */
-#define ACTION_VERSION_ENTRY					"version"
-
-/* GConf key names (specific to profile)
- */
-#define ACTION_PROFILE_LABEL_ENTRY				"desc-name"
-#define ACTION_PATH_ENTRY						"path"
-#define ACTION_PARAMETERS_ENTRY					"parameters"
-#define ACTION_BASENAMES_ENTRY					"basenames"
-#define ACTION_MATCHCASE_ENTRY					"matchcase"
-#define ACTION_MIMETYPES_ENTRY					"mimetypes"
-#define ACTION_ISFILE_ENTRY						"isfile"
-#define ACTION_ISDIR_ENTRY						"isdir"
-#define ACTION_MULTIPLE_ENTRY					"accept-multiple-files"
-#define ACTION_SCHEMES_ENTRY					"schemes"
-#define ACTION_FOLDERS_ENTRY					"folders"
+#define NAGP_ENTRY_PROFILE_LABEL		"desc-name"
+#define NAGP_ENTRY_PATH					"path"
+#define NAGP_ENTRY_PARAMETERS			"parameters"
+#define NAGP_ENTRY_BASENAMES			"basenames"
+#define NAGP_ENTRY_MATCHCASE			"matchcase"
+#define NAGP_ENTRY_MIMETYPES			"mimetypes"
+#define NAGP_ENTRY_ISFILE				"isfile"
+#define NAGP_ENTRY_ISDIR				"isdir"
+#define NAGP_ENTRY_MULTIPLE				"accept-multiple-files"
+#define NAGP_ENTRY_SCHEMES				"schemes"
+#define NAGP_ENTRY_FOLDERS				"folders"
 
 #endif /* __NAGP_GCONF_PROVIDER_KEYS_H__ */



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