anjuta r4591 - in trunk: . libanjuta/interfaces plugins/project-manager
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4591 - in trunk: . libanjuta/interfaces plugins/project-manager
- Date: Thu, 15 Jan 2009 20:50:50 +0000 (UTC)
Author: sgranjoux
Date: Thu Jan 15 20:50:50 2009
New Revision: 4591
URL: http://svn.gnome.org/viewvc/anjuta?rev=4591&view=rev
Log:
* plugins/project-manager/plugin.c,
libanjuta/interfaces/libanjuta.idl:
Fix #566146 â Critical warning when opening anjuta without a project
loaded
Modified:
trunk/ChangeLog
trunk/libanjuta/interfaces/libanjuta.idl
trunk/plugins/project-manager/plugin.c
Modified: trunk/libanjuta/interfaces/libanjuta.idl
==============================================================================
--- trunk/libanjuta/interfaces/libanjuta.idl (original)
+++ trunk/libanjuta/interfaces/libanjuta.idl Thu Jan 15 20:50:50 2009
@@ -3144,8 +3144,9 @@
* @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();
}
Modified: trunk/plugins/project-manager/plugin.c
==============================================================================
--- trunk/plugins/project-manager/plugin.c (original)
+++ trunk/plugins/project-manager/plugin.c Thu Jan 15 20:50:50 2009
@@ -2372,6 +2372,9 @@
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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]