Re: [Vala] Commit that breaks MarkupParseContext



The next URL has the testcase:
https://bugzilla.gnome.org/attachment.cgi?id=152347

It demonstrates that using methods as callbacks
with MarkupParser is possible without introducing
strange parameters neither restricting the methods to be static.

It's the same parser I had written in Genie, just simplified and
translated to vala.


On Tue, Jan 26, 2010 at 2:47 PM, Sandino Flores Moreno <tigrux gmail com> wrote:
Hello.

There was a change that breaks the normal usage of the MarkupParseContext.

The url for that commit is:
 http://git.gnome.org/browse/vala/commit/?id=2e2a42d25bd76a9e4edd2520d9e4d8b24bf80366

The problem, is that now it does not allow methods to be used as
callbacks, and it also introduces
 the parameter void * userdata that is not needed at all.

For example, this class implements a markup parser that dumps to a KeyFile:
 http://github.com/tigrux/omap-media-apps/raw/master/muxer-app/muxer-config.gs

That class parses markup files like the next one:
 http://github.com/tigrux/omap-media-apps/raw/master/muxer-app/test.xml

It was working fine before that commit. But now it does not compile.



Please. revert that commit.




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