Re: [Vala] How to connect to signal if there's a property with the same name?
- From: Al Thomas <astavale yahoo co uk>
- To: vala <vala-list gnome org>
- Subject: Re: [Vala] How to connect to signal if there's a property with the same name?
- Date: Thu, 10 Dec 2015 15:29:59 +0000 (UTC)
From: "marcin saepia net" <marcin 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, 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'
connection.closed.connect(on_dbus_connection_closed);
^^^^^^^^^^^^^^^^^^^^^^^^^
How can I overcome this?
Rename your property as 'is_closed', e.g.
if ( connection.is_closed ) { }
Otherwise I don't know.
Al
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]