Re: [Vala] Inheriting from GLib.Action
- From: Edward Hennessy <ehennes sbcglobal net>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Inheriting from GLib.Action
- Date: Thu, 27 Feb 2014 20:39:09 -0800
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]