Re: [Vala] Vala to Genie

2011-02-23 Thread Antono Vasiljev
Hello, Nicolas. On Wed, 2011-02-23 at 11:55 +0100, Nicolas wrote: > What happens if you simple declare the class like this: > > class GenieItem : Match > > And let all properties untouched. No success: genie-test-plugin.gs:37.5-37.28: error: Synapse.GeniePlugin.GenieItem: some prerequisites (

Re: [Vala] Vala to Genie

2011-02-23 Thread Nicolas
Hi, What happens if you simple declare the class like this: class GenieItem : Match And let all properties untouched. Nicolas. No success: genie-test-plugin.gs:41.12-41.20: error: syntax error, expected identifier prop construct title : string ^ Compilation failed:

Re: [Vala] Vala to Genie

2011-02-22 Thread Antono Vasiljev
On Mon, 2011-02-21 at 11:42 -0500, Jamie McCracken wrote: > > Also need to translate following: > > > > private class Connect : Object, Match { > > // from Match interface > > public string title { get; construct set; } > > public string description { get;

Re: [Vala] Vala to Genie

2011-02-21 Thread Jamie McCracken
your properties need to match the interface correctly use readonly when there is only a get and no set and likewise use construct for constructor properties try prop construct title prop readonly description etc... jamie On Mon, 2011-02-21 at 16:27 +0200, Antono Vasiljev wrote: > On Mon, 201

Re: [Vala] Vala to Genie

2011-02-21 Thread Nicolas
What happens if you declare the function as static ? def static register_plugin() For the second error, what happens if you declare the class like this: class Connect : Object, Match Nicolas. Yeah! It works. Probably need to move this to Genie wiki. But I fall into another issues so need some

Re: [Vala] Vala to Genie

2011-02-21 Thread Antono Vasiljev
On Mon, 2011-02-21 at 12:42 +0100, Nicolas wrote: > def async search (query : Query) : ResultSet? raises SearchError > > Don't forget to build with "--pkg gio-2.0" > > Nicolas. > > > Nope, neither when swapped async and ResultSet. > > > > Compilation failed: 1 error(s), 1 warning(s) > > de