[anjuta] am-project, project-manager: bgo #654320 - Vala: New Class Wizard - created file not added to projec
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] am-project, project-manager: bgo #654320 - Vala: New Class Wizard - created file not added to projec
- Date: Sat, 10 Sep 2011 09:22:03 +0000 (UTC)
commit a937af573c71a45e70788076ef02c8fb50c82bc6
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Sep 10 11:18:51 2011 +0200
am-project, project-manager: bgo #654320 - Vala: New Class Wizard - created file not added to project
plugins/am-project/amp-group.c | 1 -
plugins/project-manager/dialogs.c | 5 ++++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/am-project/amp-group.c b/plugins/am-project/amp-group.c
index 10c8a78..03cacb8 100644
--- a/plugins/am-project/amp-group.c
+++ b/plugins/am-project/amp-group.c
@@ -674,7 +674,6 @@ amp_group_node_init (AmpGroupNode *node)
node->base.native_properties = amp_get_group_property_list();
node->base.state = ANJUTA_PROJECT_CAN_ADD_GROUP |
ANJUTA_PROJECT_CAN_ADD_TARGET |
- ANJUTA_PROJECT_CAN_ADD_SOURCE |
ANJUTA_PROJECT_CAN_REMOVE |
ANJUTA_PROJECT_CAN_SAVE;
node->dist_only = FALSE;
diff --git a/plugins/project-manager/dialogs.c b/plugins/project-manager/dialogs.c
index 9f3b2ab..700b76b 100644
--- a/plugins/project-manager/dialogs.c
+++ b/plugins/project-manager/dialogs.c
@@ -165,7 +165,10 @@ parent_filter_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
need = ANJUTA_PROJECT_CAN_ADD_TARGET;
break;
case ANJUTA_PROJECT_SOURCE:
- need = ANJUTA_PROJECT_CAN_ADD_SOURCE;
+ /* Add node containing target too because target can contains module
+ * It would be probably better to check recursively if any children
+ * can accept a module and keep all parents then. */
+ need = ANJUTA_PROJECT_CAN_ADD_SOURCE | ANJUTA_PROJECT_CAN_ADD_TARGET;
break;
case ANJUTA_PROJECT_MODULE:
/* Add node containing target too because target can contains module
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]