[anjuta] project-wizard: only add [CCode (instance_pos = -1)] when using GtkBuilder



commit f1b476604649335fd8dd985e4d0550e713cba46f
Author: Abderrahim Kitouni <a kitouni gmail com>
Date:   Fri Feb 24 09:50:04 2012 +0100

    project-wizard: only add [CCode (instance_pos = -1)] when using GtkBuilder
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670483

 .../templates/vala-gtk/src/main.vala               |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-wizard/templates/vala-gtk/src/main.vala b/plugins/project-wizard/templates/vala-gtk/src/main.vala
index 1790754..f00bafd 100644
--- a/plugins/project-wizard/templates/vala-gtk/src/main.vala
+++ b/plugins/project-wizard/templates/vala-gtk/src/main.vala
@@ -52,7 +52,9 @@ public class Main : Object
 	{
 		Gtk.main_quit();
 	}
-
+[+IF (=(get "HaveBuilderUI") "1")+]
+	[CCode (instance_pos = -1)][+
+  ENDIF+]
 	static int main (string[] args) 
 	{
 		Gtk.init (ref args);



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