[anjuta] project-manager: Allow to add groups and targets in the root node
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-manager: Allow to add groups and targets in the root node
- Date: Sat, 24 Dec 2011 15:02:21 +0000 (UTC)
commit f61adf9caf205d3964f48fd6999d3d760f901e44
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Dec 24 15:15:32 2011 +0100
project-manager: Allow to add groups and targets in the root node
plugins/am-project/amp-root.c | 1 +
plugins/project-manager/dialogs.c | 9 ++-------
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/plugins/am-project/amp-root.c b/plugins/am-project/amp-root.c
index cebe05d..9eed785 100644
--- a/plugins/am-project/amp-root.c
+++ b/plugins/am-project/amp-root.c
@@ -87,6 +87,7 @@ amp_root_node_init (AmpRootNode *node)
node->base.base.type = ANJUTA_PROJECT_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 |
ANJUTA_PROJECT_CAN_ADD_PACKAGE,
ANJUTA_PROJECT_CAN_SAVE;
}
diff --git a/plugins/project-manager/dialogs.c b/plugins/project-manager/dialogs.c
index e23af61..843a231 100644
--- a/plugins/project-manager/dialogs.c
+++ b/plugins/project-manager/dialogs.c
@@ -960,7 +960,6 @@ anjuta_pm_project_new_group (ProjectManagerPlugin *plugin, GtkWindow *parent, Gt
GtkBuilder *gui;
GtkWidget *dialog, *group_name_entry, *ok_button;
GtkWidget *groups_view;
- GtkTreePath *root;
gint response;
gboolean finished = FALSE;
AnjutaProjectNode *new_group = NULL;
@@ -987,14 +986,12 @@ anjuta_pm_project_new_group (ProjectManagerPlugin *plugin, GtkWindow *parent, Gt
else
gtk_widget_set_sensitive (ok_button, FALSE);
- root = gbf_project_model_get_project_root (gbf_project_view_get_model (plugin->view));
setup_nodes_treeview (GBF_PROJECT_VIEW (groups_view),
plugin->view,
- root,
+ NULL,
parent_filter_func,
GINT_TO_POINTER (ANJUTA_PROJECT_GROUP),
selected);
- gtk_tree_path_free (root);
gtk_widget_show (groups_view);
if (parent)
@@ -1373,14 +1370,12 @@ anjuta_pm_project_new_target (ProjectManagerPlugin *plugin,
else
gtk_widget_set_sensitive (ok_button, FALSE);
- root = gbf_project_model_get_project_root (gbf_project_view_get_model (plugin->view));
setup_nodes_treeview (GBF_PROJECT_VIEW (groups_view),
plugin->view,
- root,
+ NULL,
parent_filter_func,
GINT_TO_POINTER (ANJUTA_PROJECT_TARGET),
default_group);
- gtk_tree_path_free (root);
gtk_widget_show (groups_view);
/* setup target types combo box */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]