[anjuta] libanjuta: Add a help id in node information
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Add a help id in node information
- Date: Sat, 21 Jan 2012 11:50:48 +0000 (UTC)
commit 95fd644e2766c6171c18651ebf6e8f55a5939584
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Jan 21 12:41:09 2012 +0100
libanjuta: Add a help id in node information
libanjuta/anjuta-project.c | 6 ++++
libanjuta/anjuta-project.h | 3 ++
plugins/am-project/am-project.c | 57 ++++++++++++++++++++++++++----------
plugins/am-project/amp-root.c | 2 +-
plugins/dir-project/dir-project.c | 7 +++-
plugins/mk-project/mk-project.c | 10 ++++--
6 files changed, 63 insertions(+), 22 deletions(-)
---
diff --git a/libanjuta/anjuta-project.c b/libanjuta/anjuta-project.c
index 7f33d82..b65d75b 100644
--- a/libanjuta/anjuta-project.c
+++ b/libanjuta/anjuta-project.c
@@ -1322,6 +1322,12 @@ anjuta_project_node_info_type (const AnjutaProjectNodeInfo *info)
return info->type;
}
+const gchar *
+anjuta_project_node_info_property_help_id (const AnjutaProjectNodeInfo *info)
+{
+ return info->property_help_id;
+}
+
/**
* anjuta_project_node_info_new:
* @name: (transfer none):
diff --git a/libanjuta/anjuta-project.h b/libanjuta/anjuta-project.h
index dab75b6..813a385 100644
--- a/libanjuta/anjuta-project.h
+++ b/libanjuta/anjuta-project.h
@@ -109,6 +109,7 @@ typedef enum
ANJUTA_PROJECT_MKENUMS,
ANJUTA_PROJECT_GENMARSHAL,
ANJUTA_PROJECT_SCRIPT,
+ ANJUTA_PROJECT_ROOT_GROUP,
ANJUTA_PROJECT_PROXY = 1 << 16,
ANJUTA_PROJECT_PROJECT = 1 << 17,
ANJUTA_PROJECT_PRIMARY = 1 << 18,
@@ -247,6 +248,7 @@ struct _AnjutaProjectNodeInfo
AnjutaProjectNodeType type;
gchar *name;
gchar *mime_type;
+ gchar *property_help_id;
};
GType anjuta_project_node_info_get_type (void);
@@ -258,6 +260,7 @@ void anjuta_project_node_info_free (AnjutaProjectNodeInfo *info);
const gchar *anjuta_project_node_info_name (const AnjutaProjectNodeInfo *info);
const gchar *anjuta_project_node_info_mime (const AnjutaProjectNodeInfo *info);
AnjutaProjectNodeType anjuta_project_node_info_type (const AnjutaProjectNodeInfo *info);
+const gchar *anjuta_project_node_info_property_help_id (const AnjutaProjectNodeInfo *info);
G_END_DECLS
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 0791a8e..7729b7b 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -86,16 +86,26 @@ struct _AmpConfigFile {
*---------------------------------------------------------------------------*/
static AmpNodeInfo AmpNodeInformations[] = {
+ {{ANJUTA_PROJECT_GROUP | ANJUTA_PROJECT_ROOT_GROUP,
+ N_("Root"),
+ "text/plain",
+ "autotools-project-root-edit"},
+ ANJUTA_TOKEN_NONE,
+ NULL,
+ NULL},
+
{{ANJUTA_PROJECT_GROUP,
N_("Group"),
- "text/plain"},
+ "text/plain",
+ "autotools-project-folder-edit"},
ANJUTA_TOKEN_NONE,
NULL,
NULL},
{{ANJUTA_PROJECT_SOURCE,
N_("Source"),
- "text/plain"},
+ "text/plain",
+ NULL},
ANJUTA_TOKEN_NONE,
NULL,
NULL},
@@ -104,104 +114,119 @@ static AmpNodeInfo AmpNodeInformations[] = {
/* Translator: Unknown here is a target type, if not unknown it can
* be a program or a shared library by example */
N_("Unknown"),
- "text/plain"},
+ "text/plain",
+ "autotools-project-target-edit"},
ANJUTA_TOKEN_NONE,
NULL,
NULL},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_PRIMARY | ANJUTA_PROJECT_SHAREDLIB,
N_("Shared Library"),
- "application/x-sharedlib"},
+ "application/x-sharedlib",
+ "autotools-project-target-edit"},
AM_TOKEN__LTLIBRARIES,
"LTLIBRARIES",
"lib"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_PRIMARY | ANJUTA_PROJECT_STATICLIB,
N_("Static Library"),
- "application/x-archive"},
+ "application/x-archive",
+ "autotools-project-target-edit"},
AM_TOKEN__LIBRARIES,
"LIBRARIES",
"lib"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_PRIMARY | ANJUTA_PROJECT_PROGRAM | ANJUTA_PROJECT_EXECUTABLE,
N_("Program"),
- "application/x-executable"},
+ "application/x-executable",
+ "autotools-project-target-edit"},
AM_TOKEN__PROGRAMS,
"PROGRAMS",
"bin"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_PYTHON,
N_("Python Module"),
- "application/x-python"},
+ "application/x-python",
+ "autotools-project-target-edit"},
AM_TOKEN__PYTHON,
"PYTHON",
"python"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_JAVA,
N_("Java Module"),
- "application/x-java"},
+ "application/x-java",
+ "autotools-project-target-edit"},
AM_TOKEN__JAVA,
"JAVA",
"java"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_LISP,
N_("Lisp Module"),
- "text/plain"},
+ "text/plain",
+ "autotools-project-target-edit"},
AM_TOKEN__LISP,
"LISP",
"lisp"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_HEADER,
N_("Header Files"),
- "text/x-chdr"},
+ "text/x-chdr",
+ "autotools-project-target-edit"},
AM_TOKEN__HEADERS,
"HEADERS",
"include"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_MAN,
N_("Man Documentation"),
- "text/x-troff-man"},
+ "text/x-troff-man",
+ "autotools-project-target-edit"},
AM_TOKEN__MANS,
"MANS",
"man"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_INFO,
N_("Info Documentation"),
- "application/x-tex-info"},
+ "application/x-tex-info",
+ "autotools-project-target-edit"},
AM_TOKEN__TEXINFOS,
"TEXINFOS",
"info"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_DATA,
N_("Miscellaneous Data"),
- "application/octet-stream"},
+ "application/octet-stream",
+ "autotools-project-target-edit"},
AM_TOKEN__DATA,
"DATA",
"data"},
{{ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_SCRIPT,
N_("Script"),
- "text/x-shellscript"},
+ "text/x-shellscript",
+ "autotools-project-target-edit"},
AM_TOKEN__SCRIPTS,
"SCRIPTS",
"bin"},
{{ANJUTA_PROJECT_MODULE,
N_("Module"),
- ""},
+ "",
+ NULL},
ANJUTA_TOKEN_NONE,
NULL,
NULL},
{{ANJUTA_PROJECT_PACKAGE,
N_("Package"),
- ""},
+ "",
+ NULL},
ANJUTA_TOKEN_NONE,
NULL,
NULL},
{{ANJUTA_PROJECT_UNKNOWN,
NULL,
+ NULL,
NULL},
ANJUTA_TOKEN_NONE,
NULL,
diff --git a/plugins/am-project/amp-root.c b/plugins/am-project/amp-root.c
index 9eed785..93e49fc 100644
--- a/plugins/am-project/amp-root.c
+++ b/plugins/am-project/amp-root.c
@@ -84,7 +84,7 @@ G_DEFINE_DYNAMIC_TYPE (AmpRootNode, amp_root_node, AMP_TYPE_GROUP_NODE);
static void
amp_root_node_init (AmpRootNode *node)
{
- node->base.base.type = ANJUTA_PROJECT_GROUP;
+ node->base.base.type = ANJUTA_PROJECT_GROUP | ANJUTA_PROJECT_ROOT_GROUP;
node->base.base.properties_info = amp_get_project_property_list();
node->base.base.state = ANJUTA_PROJECT_CAN_ADD_GROUP |
ANJUTA_PROJECT_CAN_ADD_TARGET |
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index 2dfc9e0..608f160 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -869,12 +869,15 @@ dir_project_get_node_info (DirProject *project, GError **error)
static AnjutaProjectNodeInfo node_info[] = {
{ANJUTA_PROJECT_GROUP,
N_("Group"),
- ""},
+ "",
+ NULL},
{ANJUTA_PROJECT_SOURCE,
N_("Source"),
- ""},
+ "",
+ NULL},
{ANJUTA_PROJECT_UNKNOWN,
NULL,
+ NULL,
NULL}};
static GList *info_list = NULL;
diff --git a/plugins/mk-project/mk-project.c b/plugins/mk-project/mk-project.c
index 637735e..e2d178b 100644
--- a/plugins/mk-project/mk-project.c
+++ b/plugins/mk-project/mk-project.c
@@ -64,18 +64,22 @@ static const gchar *valid_makefiles[] = {"GNUmakefile", "makefile", "Makefile",
static MkpNodeInfo MkpNodeInformation[] = {
{{ANJUTA_PROJECT_GROUP,
N_("Group"),
- ""}},
+ "",
+ NULL}},
{{ANJUTA_PROJECT_SOURCE,
N_("Source"),
- ""}},
+ "",
+ NULL}},
{{ANJUTA_PROJECT_TARGET,
N_("Unknown"),
- "text/plain"}},
+ "text/plain",
+ NULL}},
{{ANJUTA_PROJECT_UNKNOWN,
NULL,
+ NULL,
NULL}}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]