[Vala] vala + policykit

2012-03-08 Thread D.H. Bahr
Hey there!! Can anyone give a tip on how to use policykit in vala? -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre)

Re: [Vala] calling the parent constructor.

2012-03-08 Thread Luca Bruno
On Thu, Mar 8, 2012 at 4:57 PM, Andrew Higginson at.higgin...@gmail.comwrote: In Vala you don't need to do this (and cannot), it is done for you when you compile. See https://live.gnome.org/Vala/FAQ#Why_can.27t_I_chain_up_to_base_constructor.3F -- www.debian.org - The Universal Operating

Re: [Vala] DBus server-side codegen

2012-03-08 Thread Eric Gregory
On Thu, Mar 8, 2012 at 3:29 AM, Luca Bruno lethalma...@gmail.com wrote: Why do you need xml for the server? http://live.gnome.org/Vala/DBusServerSample Ideally you want to code to the interface, not the other way around. That's why dbus-binding-tool and qdbusxml2cpp can generate the

Re: [Vala] Class finalizer

2012-03-08 Thread Jacques-Pascal Deplaix
On 03/08/2012 12:30 PM, Luca Bruno wrote: On Thu, Mar 8, 2012 at 7:03 AM, Derek Dai daide...@gmail.com wrote: Hi, In Vala, if I allocate resource in static construct block, where can I free it? Thanks. static ~Foo () { } Hi, I'm very interested about that. But when I tried that solution,

Re: [Vala] Class finalizer

2012-03-08 Thread Luca Bruno
Static/class destructors are pointless in applications, as the memory will be freed on exit. Dynamic types are those loaded and unloaded with plugins, it works with [ModuleInit]. That's where it makes sense. -- www.debian.org - The Universal Operating System

Re: [Vala] Class finalizer

2012-03-08 Thread Derek Dai
I tried the syntax too. The same issue. But it's OK with class construct/destruct. class MyClass : Object { static string message = null; class construct { message = Bla; } class ~MyClass() { message = null; } } Derek Dai On Fri, Mar 9, 2012 at 5:39 AM, vala-list-requ...@gnome.org wrote: