[anjuta/newproject] ianjuta_project_node_set_property returns a IAnjutaProjectProperty*
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/newproject] ianjuta_project_node_set_property returns a IAnjutaProjectProperty*
- Date: Sat, 25 Sep 2010 20:20:21 +0000 (UTC)
commit 17945516445d05345520b4be1fb4852bbd8d3415
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sat Sep 25 22:10:15 2010 +0200
ianjuta_project_node_set_property returns a IAnjutaProjectProperty*
libanjuta/interfaces/libanjuta.idl | 4 ++--
plugins/am-project/am-project.c | 4 ++--
plugins/dir-project/dir-project.c | 4 ++--
plugins/project-manager/project.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 9919aa9..2206856 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -3183,9 +3183,9 @@ interface IAnjutaProject
*
* Change a properties on node.
*
- * Return value: FALSE if some properties cannot be set.
+ * Return value: The new property of NULL if the property cannot be set
*/
- gboolean set_property (AnjutaProjectNode *parent, AnjutaProjectProperty* property, const gchar *value);
+ AnjutaProjectProperty *set_property (AnjutaProjectNode *parent, AnjutaProjectProperty* property, const gchar *value);
/**
* ianjuta_project_remove_property:
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 467f59f..000a550 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -2722,7 +2722,7 @@ iproject_remove_node (IAnjutaProject *obj, AnjutaProjectNode *node, GError **err
return TRUE;
}
-static gboolean
+static AnjutaProjectProperty *
iproject_set_property (IAnjutaProject *obj, AnjutaProjectNode *node, AnjutaProjectProperty *property, const gchar *value, GError **error)
{
AnjutaProjectProperty *new_prop;
@@ -2730,7 +2730,7 @@ iproject_set_property (IAnjutaProject *obj, AnjutaProjectNode *node, AnjutaProje
new_prop = amp_node_property_set (node, property, value);
amp_project_update_property (AMP_PROJECT (obj), new_prop);
- return TRUE;
+ return new_prop;
}
static gboolean
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index 9421c9a..5a7daac 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -757,14 +757,14 @@ iproject_remove_node (IAnjutaProject *obj, AnjutaProjectNode *node, GError **err
return TRUE;
}
-static gboolean
+static AnjutaProjectProperty*
iproject_set_property (IAnjutaProject *obj, AnjutaProjectNode *node, AnjutaProjectProperty *property, const gchar *value, GError **error)
{
g_set_error (error, IANJUTA_PROJECT_ERROR,
IANJUTA_PROJECT_ERROR_NOT_SUPPORTED,
_("Project doesn't allow to set properties"));
- return FALSE;
+ return NULL;
}
static gboolean
diff --git a/plugins/project-manager/project.c b/plugins/project-manager/project.c
index 8b47181..65add31 100644
--- a/plugins/project-manager/project.c
+++ b/plugins/project-manager/project.c
@@ -956,7 +956,7 @@ anjuta_pm_project_set_properties (AnjutaPmProject *project, AnjutaProjectNode *n
{
AnjutaProjectPropertyValue *prop = (AnjutaProjectPropertyValue *)item->data;
- valid = ianjuta_project_set_property (project->project, node, prop->property, prop->value, error);
+ valid = ianjuta_project_set_property (project->project, node, prop->property, prop->value, error) != NULL;
if (!valid) break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]