Re: [Vala] Defining a new type

2012-04-22 Thread Guenther Wutz
Hey - i think this is a problem with glib-2.0.vapi. If you read the class definition, then i think, there must be a problem. public class HashTable { [CCode (cname = "g_hash_table_new_full", simple_generics = true)] public HashTable (HashFunc? hash_func, EqualFunc? key_equal_func);

Re: [Vala] GladeToValaCode v 0.01

2011-09-16 Thread Guenther Wutz
Hey, i'm interested on the source. Maybe you want to push it to a online repository like github or similiar services? Regards, Am Freitag, den 16.09.2011, 07:32 -0500 schrieb Edwin DLCA: > Greetings. > I'm almost therms a small software that converts *. glade file and converts > it toui vala cod

[Vala] GtkCellRenderer

2011-09-13 Thread Guenther Wutz
Hi all, i want to use a custom GtkCellRenderer in Vala. In Devhelp it is stated that get_size() is deprecated since Gtk+-3.0. But in Vala, this method is at the moment abstract which means i have to implement it if i want to use the base class GtkCellRenderer. Is the Binding not up to date or is i

Re: [Vala] gtk_clutter_init

2011-09-02 Thread Guenther Wutz
Hi, as i see in the clutter-gtk-1.0.vapi you have to use GtkClutter.init(). But i dont tested it. Greets Am Samstag, den 03.09.2011, 00:43 +0200 schrieb rastersoft: > Hi all: > > How can I call gtk_clutter_init()? I tried several combinations but > I've been unable to do it. > > Thanks. > >

[Vala] interface prerequistes

2011-08-10 Thread Guenther Wutz
Hi list, is it okay that the order of interfaces plays a significant role in Vala? Simple example: -- interface IfaceA : Object { public abstract void method_a (); } interface IfaceB : Object, IfaceA { public abstract void method_b (); } class Demo :

Re: [Vala] Is goocanvas best for scrapbook type app?

2011-07-23 Thread Guenther Wutz
It depends, which output do you want from this application. Mx is great if you only want to get a picture from the canvas later. GooCanvas has the ability to export into an SVG Vector Graphics Format (and Picture export as well). But Alexandre is right - ask at the Gtk List they have more experienc

[Vala] ArrayList fails with double operation

2011-03-27 Thread Guenther Wutz
Hi, i played recently with ArrayLists and found an interesting behaviour but look at the example-code // using Gee; int main() { var list = new ArrayList(); list.add(3.0); list.add(2.0); stdout.printf("%f\n", list[0] + list[1]); ret

Re: [Vala] Debugging

2011-03-23 Thread Guenther Wutz
I think this happens because valac does not add line-signature to the c-File. Why happens this? Am Mittwoch, den 23.03.2011, 09:22 +0100 schrieb Guenther Wutz: > Hi all, > > i try to debug a Vala-program. Normally i use nemiver for this job. I > compile my program with

[Vala] Debugging

2011-03-23 Thread Guenther Wutz
Hi all, i try to debug a Vala-program. Normally i use nemiver for this job. I compile my program with $ valac MaxteilSum.vala -g --save-temps $ nemiver MaxteilSum but nemiver (version 8.1) uses not the .vala file for debugging. He use the generated .c-file. How can i activate the possibility t