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



From: "marcin saepia net" <marcin 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.


https://developer.gnome.org/gio/stable/GDBusConnection.html#GDBusConnection--closed

Hmm, there is also an is_closed() call:
https://developer.gnome.org/gio/stable/GDBusConnection.html#g-dbus-connection-is-closed

That would hopefully work around the name clash for you.


I'm not sure how the name clash should be resolved in the bindings.

Al


m.


2015-12-10 16:29 GMT+01:00 Al Thomas <astavale yahoo co uk>:
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]