Re: [Vala] Problem with notifications



On Wed, June 4, 2008 13:12, Maciej Piechotka wrote:
I have a read-only property. However in some cases it is changed within
the class (by _property). How to send notification about it?
To call notify I have to get ParamSpec which I can receive by
find_property
to which I need to access ObjectClass I don't know how to access.

I'd recommend you to only change the property directly, then, and declare
the property as follows:

    [Notify]
    public int foo { get; private set; }

Juerg




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