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



10.12.2015, 13:52, "marcin saepia net" <marcin 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'
          connection.closed.connect(on_dbus_connection_closed);
          ^^^^^^^^^^^^^^^^^^^^^^^^^

How can I overcome this?

Marcin

I remember having similar problem with GTK+, but I don't recall if I solved it and how.

Probably, it is a bug and it should be reported (if not already).

Regards,
Dmitry


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]