Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-29 Thread Yu Feng
On Wed, 2008-10-22 at 12:05 -0200, Matías De la Puente wrote: > Thanks for the clarifying! But I am still curious why my code didn't > work. > > class MyClass { > public static MarkupParser p; > >void somefunction() { >p.start_element = start_element; >} > >void start_element

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-29 Thread Yu Feng
Hi Matias, It doesn't work if Test is a subclass of Object. Yu On Wed, 2008-10-22 at 10:27 -0200, Matías De la Puente wrote: > Hi Yu > > I patch the glib.vapi changing Markup delegates > http://bugzilla.gnome.org/show_bug.cgi?id=553282 > I done that to use "this" inside the method of the clas

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-22 Thread Matías De la Puente
Thanks for the clarifying! But I am still curious why my code didn't work. class MyClass { public static MarkupParser p; void somefunction() { p.start_element = start_element; } void start_element(MarkupParseContext context, string element_name, string[] attribute_names

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-22 Thread Yu Feng
On Wed, 2008-10-22 at 10:27 -0200, Matías De la Puente wrote: > Hi Yu > > I patch the glib.vapi changing Markup delegates > http://bugzilla.gnome.org/show_bug.cgi?id=553282 > I done that to use "this" inside the method of the class. > With this you can access the members and function of the class

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-22 Thread Matías De la Puente
Hi Yu I patch the glib.vapi changing Markup delegates http://bugzilla.gnome.org/show_bug.cgi?id=553282 I done that to use "this" inside the method of the class. With this you can access the members and function of the class that aren't static. here is a working example compiled with vala 0.4.0 p

[Vala] GMarkup broken in Vala 0.4.0?

2008-10-21 Thread Yu Feng
First let congratulate the new Vala release. I was trying to upgrade to vala 0.4.0 but I ran into troubles with GMarkup very quickly. The GMarkup callbacks were declared as static in 0.3.5(I hope it wasn't modified to static by me); in 0.4.0 they become non-static. However, these functions don't