No, I like both.
Vala is more like C/Java, Genie like Basic.
I concentrate on vala, because there is more documentation.
So to get startet, I tried vala, then I can try to port the programs to Genie.
Concerning Syntax-highlighting, I think further modifications of the IDE would be required.
I hesitate to mess around in foreign code.
I would suggest, that you contact the author:
http://code.google.com/p/valide/
http://valaide.blogspot.com/
I think it would be better, if you do it, not me.
I already have this "tunnel-view", so would not see requirements for beginners.
So I think you could suggest more "basic" issues, that would have priority at the current state.
---------------------------------------------------
I attach a new example.
This was a "pain in the *", it took a whole day, to find out, how it works.
It is an extended version of the Glade example now written in Genie.
During compilation you get a warning, but you can ignore it.
I added two helper functions, that allow to set values like a buttontext on the Window, that was generated from the gladesample.glade.
If you use other widgets, you had to add corresponding helperfunctions, but they are very simple.
Make a copy of "get_button", and rename "button" to the type of widget, that you need to access.
Unlike C, vala/genie does not allow Widget-conversion.
This will not work:
Code: Select all
GtkWidget *w;
w=glade_xml_get_widget(xml, "button1");
Gtk_button_set_label(GTK_BUTTON(w) , "testtext");
This is not possible:
GTK_BUTTON(w)
The new helperfunctions work around that issue.
Mark