[anjuta] libanjuta: rename anjuta_project_*_get_node_from_file to be methods of ProjectNode
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: rename anjuta_project_*_get_node_from_file to be methods of ProjectNode
- Date: Wed, 17 Aug 2011 18:11:41 +0000 (UTC)
commit 41653595373005923079c9492c5ed2dfe81b65b6
Author: Abderrahim Kitouni <akitouni src gnome org>
Date: Wed Aug 17 10:12:45 2011 +0100
libanjuta: rename anjuta_project_*_get_node_from_file to be methods of ProjectNode
libanjuta/anjuta-project.c | 16 ++++++++++++++--
libanjuta/anjuta-project.h | 4 ++--
plugins/language-support-vala/libanjuta-3.0.vapi | 2 ++
3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/libanjuta/anjuta-project.c b/libanjuta/anjuta-project.c
index aad29f6..42ed11c 100644
--- a/libanjuta/anjuta-project.c
+++ b/libanjuta/anjuta-project.c
@@ -912,8 +912,14 @@ anjuta_project_group_compare (AnjutaProjectNode *node, gpointer data)
}
}
+/**
+ * anjuta_project_node_get_group_from_file:
+ * @func: (scope call):
+ *
+ * Returns: (transfer none):
+ */
AnjutaProjectNode *
-anjuta_project_group_get_node_from_file (const AnjutaProjectNode *root, GFile *directory)
+anjuta_project_node_get_group_from_file (const AnjutaProjectNode *root, GFile *directory)
{
AnjutaProjectNode *node;
@@ -962,8 +968,14 @@ anjuta_project_source_compare (AnjutaProjectNode *node, gpointer data)
}
}
+/**
+ * anjuta_project_node_get_source_from_file:
+ * @func: (scope call):
+ *
+ * Returns: (transfer none):
+ */
AnjutaProjectNode *
-anjuta_project_source_get_node_from_file (const AnjutaProjectNode *parent, GFile *file)
+anjuta_project_node_get_source_from_file (const AnjutaProjectNode *parent, GFile *file)
{
AnjutaProjectNode *node;
diff --git a/libanjuta/anjuta-project.h b/libanjuta/anjuta-project.h
index 12dedd7..869cb54 100644
--- a/libanjuta/anjuta-project.h
+++ b/libanjuta/anjuta-project.h
@@ -213,9 +213,9 @@ gboolean anjuta_project_node_clear_state (AnjutaProjectNode *node, AnjutaProject
AnjutaProjectProperty *anjuta_project_node_insert_property (AnjutaProjectNode *node, AnjutaProjectProperty *native, AnjutaProjectProperty *property);
AnjutaProjectProperty *anjuta_project_node_remove_property (AnjutaProjectNode *node, AnjutaProjectProperty *property);
-AnjutaProjectNode *anjuta_project_group_get_node_from_file (const AnjutaProjectNode *root, GFile *directory);
+AnjutaProjectNode *anjuta_project_node_get_group_from_file (const AnjutaProjectNode *root, GFile *directory);
AnjutaProjectNode *anjuta_project_target_get_node_from_name (const AnjutaProjectNode *parent, const gchar *name);
-AnjutaProjectNode *anjuta_project_source_get_node_from_file (const AnjutaProjectNode *parent, GFile *file);
+AnjutaProjectNode *anjuta_project_node_get_source_from_file (const AnjutaProjectNode *parent, GFile *file);
diff --git a/plugins/language-support-vala/libanjuta-3.0.vapi b/plugins/language-support-vala/libanjuta-3.0.vapi
index 2bf2829..acb5861 100644
--- a/plugins/language-support-vala/libanjuta-3.0.vapi
+++ b/plugins/language-support-vala/libanjuta-3.0.vapi
@@ -429,11 +429,13 @@ namespace Anjuta {
public unowned GLib.List<Anjuta.ProjectProperty> get_custom_properties ();
public unowned GLib.File get_file ();
public Anjuta.ProjectNodeType get_full_type ();
+ public unowned Anjuta.ProjectNode get_group_from_file (GLib.File directory);
public Anjuta.ProjectProperty get_map_property (Anjuta.ProjectProperty property, string name);
public unowned string get_name ();
public unowned GLib.List<Anjuta.ProjectProperty> get_native_properties ();
public Anjuta.ProjectNodeType get_node_type ();
public unowned Anjuta.ProjectProperty get_property (Anjuta.ProjectProperty property);
+ public unowned Anjuta.ProjectNode get_source_from_file (GLib.File file);
public Anjuta.ProjectNodeState get_state ();
public unowned Anjuta.ProjectNode insert_after (Anjuta.ProjectNode? sibling, Anjuta.ProjectNode node);
public unowned Anjuta.ProjectNode insert_before (Anjuta.ProjectNode? sibling, Anjuta.ProjectNode node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]