[anjuta] run-program, debug-manager, build-autotools: Run dialog should display all project targets



commit 579e37cbecdb066ddc065b54daba355638df2cfd
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Fri Dec 3 21:25:48 2010 +0100

    run-program, debug-manager, build-autotools: Run dialog should display all project targets

 plugins/build-basic-autotools/executer.c |    2 +-
 plugins/debug-manager/start.c            |    4 ++--
 plugins/run-program/parameters.c         |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/build-basic-autotools/executer.c b/plugins/build-basic-autotools/executer.c
index b4570c9..a1f2be2 100644
--- a/plugins/build-basic-autotools/executer.c
+++ b/plugins/build-basic-autotools/executer.c
@@ -64,7 +64,7 @@ get_program_parameters (BasicAutotoolsPlugin *plugin,
 		g_return_val_if_fail (pm != NULL, FALSE);
 		exec_targets =
 		ianjuta_project_manager_get_targets (pm, 
-							ANJUTA_PROJECT_EXECUTABLE,
+							ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_EXECUTABLE,
                             NULL);
 		if (!exec_targets)
 		{
diff --git a/plugins/debug-manager/start.c b/plugins/debug-manager/start.c
index 7ab0c98..409fbc6 100644
--- a/plugins/debug-manager/start.c
+++ b/plugins/debug-manager/start.c
@@ -208,11 +208,11 @@ get_source_directories (AnjutaPlugin *plugin)
 		{
 			slibs_dirs =
 				ianjuta_project_manager_get_targets (pm,
-					ANJUTA_PROJECT_SHAREDLIB,
+					ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_SHAREDLIB,
 				    NULL);
 			libs_dirs =
 				ianjuta_project_manager_get_targets (pm,
-					ANJUTA_PROJECT_STATICLIB,
+					ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_STATICLIB,
 				    NULL);
 		}
 	}
diff --git a/plugins/run-program/parameters.c b/plugins/run-program/parameters.c
index 60d4d36..82441fd 100644
--- a/plugins/run-program/parameters.c
+++ b/plugins/run-program/parameters.c
@@ -678,7 +678,7 @@ run_dialog_init (RunDialog *dlg, RunProgramPlugin *plugin)
 		if (pm != NULL)
 		{
 			exec_targets = ianjuta_project_manager_get_targets (pm,
-							 ANJUTA_PROJECT_EXECUTABLE,
+							 ANJUTA_PROJECT_TARGET | ANJUTA_PROJECT_EXECUTABLE,
 							 NULL);
 		}
 		if (exec_targets != NULL)



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