Commit fe864ee1 authored by Sebastien Granjoux's avatar Sebastien Granjoux

Fix #566146 – Critical warning when opening anjuta without a project

	* plugins/project-manager/plugin.c,
	libanjuta/interfaces/libanjuta.idl:
	Fix #566146 – Critical warning when opening anjuta without a project
	loaded

svn path=/trunk/; revision=4591
parent 281c7eba
2008-01-15 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/project-manager/plugin.c,
libanjuta/interfaces/libanjuta.idl:
Fix #566146 – Critical warning when opening anjuta without a project
loaded
2008-01-15 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/file-loader/plugin.c:
......@@ -3144,8 +3144,9 @@ interface IAnjutaProjectManager
* @obj: Self
* @err: Error propagation and reporting.
*
* Returns: the list of pkg-config packages that this projects
* requires in it's configure.ac or NULL
* Returns: the list of pkg-config packages that the current project
* requires in it's configure.ac. Can be NULL if there is no project
* opened currently or no package is required.
*/
List<gchar*> get_packages();
}
......
......@@ -2372,6 +2372,9 @@ iproject_manager_get_packages (IAnjutaProjectManager *project_manager, GError **
plugin = ANJUTA_PLUGIN_PROJECT_MANAGER (G_OBJECT (project_manager));
/* Check if a current project is opened */
if (plugin->project == NULL) return NULL;
modules = gbf_project_get_config_modules (plugin->project, NULL);
for (node = modules; node != NULL; node = g_list_next (node))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment