Re: [Vala] Inheriting from GLib.Action
- From: Luca Bruno <lethalman88 gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] Inheriting from GLib.Action
- Date: Thu, 27 Feb 2014 18:48:40 +0100
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]