Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-11 Thread Andrew Benton
You might be able to get around this issue by using the GLib.Object's connect method to directly specify the signal. See: http://www.valadoc.org/#!api=gobject-2.0/GLib.Object.connect On 12/10/2015 12:16 PM, Luc Chante wrote: Hi, According to this

Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread Luc Chante
Hi, According to this https://git.gnome.org/browse/vala/tree/vapi/gio-2.0.vapi#n516 it seems that the signal isn't bound in vala. Maybe vala doesn't accept yet that a property and a method (signal) have the same name. As Robert Schroll says, connect to the notify signal of the property. "...

Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread Al Thomas
>From: "mar...@saepia.net" >Sent: Thursday, 10 December 2015, 19:52 >Subject: Re: [Vala] How to connect to signal if there's a property with the >same name? > >I cannot rename this, this is part of GIO. >

Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread mar...@saepia.net
Not really, because I don't want to poll and check periodically if connection is closed but to get event when it is closed. For now I've invented something like this. Works but I have no clue yet if there are no memleaks. private bool on_dbus_server_new_connection(DBusServer server,

[Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread mar...@saepia.net
Hello, I need to connect to "closed" signal of GDBusConnection, but because there is a property with the same name, valac refuses to compile and throws the following error src/common/daemon/base.vala:63.11-63.35: error: The name `connect' does not exist in the context of `bool'

Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread Al Thomas
> From: "mar...@saepia.net" > Sent: Thursday, 10 December 2015, 11:51 > Subject: [Vala] How to connect to signal if there's a property with the same > name? > > I need to connect to "closed" signal of GDBusConnection, but because > there > is a property with the same name,