[anjuta/gnome-3-0] dir-project, mk-project: bgo #644047 - No Symbols shown in Global and Search Symbol pane



commit 04810e4068418e64f6c48ccfc7bceec2cb3227d9
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sun May 1 20:45:13 2011 +0200

    dir-project, mk-project: bgo #644047 - No Symbols shown in Global and Search Symbol pane

 plugins/dir-project/dir-project.c      |    2 +-
 plugins/mk-project/mk-rule.c           |    1 +
 plugins/project-manager/project-util.c |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index 5aee9dc..5dcff45 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -581,7 +581,7 @@ dir_project_load_directory_callback (GObject      *source_object,
 			if (source == NULL)
 			{
 				/* Create a source for files */
-				source = project_node_new (data->proj, NULL, ANJUTA_PROJECT_SOURCE, file, NULL, NULL);
+				source = project_node_new (data->proj, NULL, ANJUTA_PROJECT_SOURCE | ANJUTA_PROJECT_PROJECT, file, NULL, NULL);
 				anjuta_project_node_append (data->parent, source);
 			}
 		}
diff --git a/plugins/mk-project/mk-rule.c b/plugins/mk-project/mk-rule.c
index 7fbd205..d2e4566 100644
--- a/plugins/mk-project/mk-rule.c
+++ b/plugins/mk-project/mk-rule.c
@@ -352,6 +352,7 @@ mkp_project_enumerate_targets (MkpProject *project, AnjutaProjectNode *parent)
 			{
 				src_file = g_file_get_child (project->root_file, name);
 				source = MKP_SOURCE(mkp_source_new (src_file));
+				source->base.type = ANJUTA_PROJECT_SOURCE | ANJUTA_PROJECT_PROJECT;
 				g_object_unref (src_file);
 				anjuta_project_node_append (ANJUTA_PROJECT_NODE(target), ANJUTA_PROJECT_NODE(source));
 
diff --git a/plugins/project-manager/project-util.c b/plugins/project-manager/project-util.c
index 1beb7c5..963a2b5 100644
--- a/plugins/project-manager/project-util.c
+++ b/plugins/project-manager/project-util.c
@@ -67,7 +67,7 @@ gbf_project_util_node_all (AnjutaProjectNode *parent, AnjutaProjectNodeType type
     for (node = anjuta_project_node_first_child (parent); node != NULL; node = anjuta_project_node_next_sibling (node))
     {
         GList *child_list;
-        
+
         if ((type_type == 0) || (anjuta_project_node_get_node_type (node) == type_type))
         {
             gint type;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]