Re: [Vala] Inheriting from GLib.Action




On Feb 27, 2014, at 9:48 AM, Luca Bruno <lethalman88 gmail com> wrote:

On 27/02/2014 17:09, Edward Hennessy wrote:
Hello,

I'm trying to create custom actions by inheriting from GLib.Action, however,
the following code:

public class CloseProjectAction : Object, Action
{
    public bool enabled
    {
        get
        {
            return true;
        }
    }

    public bool get_enabled()
    {
        return true;
    }

    /* more method implementations... */
}

You should define only the property, not the get_enabled() method. If get_enabled() is part of the 
bindings, that has to be removed from the interface as it's a bindings bug.

Thank you.

I've submitted 725363 and 725367.

Cheers,
Ed


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