Re: [Vala] [ANNOUNCE] Vala 0.19.0 - Compiler for the GObject type system
Hello You could try this package I've just compiled. It's running under MingW. http://linbox.free.fr/cross-compile/binaries/vala-0.19.0-bin.tar.xz And check this directory for libs and more : http://linbox.free.fr/cross-compile/binaries Regards Raum > On Wed, 20 Feb 2013 22:48:41 +0100 > Jürg Billeter wrote: > >> We are pleased to announce version 0.19.0 of Vala, a compiler for >> the GObject type system. >> >> Vala 0.19.0 is now available for download at: >>http://download.gnome.org/sources/vala/0.19/ >> > > > Is there a Win7 binary package available somewhere? > > > -- >,,, > ( °> dukeofp...@ml1.net > ( / ) Linux User since 1995 > >| |< > > ___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Problem with GLib.KeyFile
Hi there, I try to use GLib.KeyFile to parse a configuration file yet I am experiencing problems even if I just return a reference to a KeyFile object (see code and output below). What am I doing wrong? Thanks in advance for your help! Regards, Robin == Minimal code example class Test { private GLib.KeyFile key_file = new GLib.KeyFile(); public GLib.KeyFile get_key_file() { return key_file; } static int main(string[] args) { Test test = new Test(); test.get_key_file(); return 0; } } == Compiler output $ valac test.vala test.vala:6.16-6.23: error: duplicating KeyFile instance, use unowned variable or explicitly invoke copy method return key_file; ** (valac:18290): CRITICAL **: vala_ccode_function_add_assignment: assertion `right != NULL' failed Compilation failed: 1 error(s), 0 warning(s) signature.asc Description: This is a digitally signed message part. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Problem with GLib.KeyFile
Do this: public unowned GLib.KeyFile get_key_file() { return key_file; } That should work Am Donnerstag, den 21.02.2013, 13:36 +0100 schrieb Robin Krahl: > Hi there, > > I try to use GLib.KeyFile to parse a configuration file yet I am experiencing > problems even if I just return a reference to a KeyFile object (see code and > output below). What am I doing wrong? > > Thanks in advance for your help! > > Regards, > Robin > > == Minimal code example > class Test { > > private GLib.KeyFile key_file = new GLib.KeyFile(); > > public GLib.KeyFile get_key_file() { > return key_file; > } > > static int main(string[] args) { > Test test = new Test(); > test.get_key_file(); > return 0; > } > > } > > == Compiler output > $ valac test.vala > test.vala:6.16-6.23: error: duplicating KeyFile instance, use unowned > variable > or explicitly invoke copy method > return key_file; > > > ** (valac:18290): CRITICAL **: vala_ccode_function_add_assignment: assertion > `right != NULL' failed > Compilation failed: 1 error(s), 0 warning(s) > ___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list