[anjuta] language-support-vala: fix a crash when bindings aren't found
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-vala: fix a crash when bindings aren't found
- Date: Wed, 29 Dec 2010 21:46:05 +0000 (UTC)
commit 2effea2c4be0a234b3fb64631730e13bd89adf92
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Wed Aug 25 14:03:22 2010 +0100
language-support-vala: fix a crash when bindings aren't found
plugins/language-support-vala/plugin.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index 026d935..d31436f 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -60,12 +60,16 @@ public class ValaPlugin : Plugin {
var project = (IAnjuta.ProjectManager) shell.get_object("IAnjutaProjectManager");
var packages = project.get_packages();
+
+ Vala.CodeContext.push (context);
context.add_package("glib-2.0");
context.add_package("gobject-2.0");
foreach (var pkg in packages)
context.add_package(pkg);
+ Vala.CodeContext.pop ();
+
source_files = new Vala.HashMap<string, Vala.SourceFile>(str_hash, str_equal, direct_equal);
var sources = project.get_elements(Anjuta.ProjectNodeType.SOURCE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]