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
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
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
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
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
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