On Feb 27, 2014, at 9:48 AM, Luca Bruno <[email protected]> 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
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to