Re: [Vala] [vapigen] How to replace the abstract by virtual



Thank's, few lines below I found the solution:

gtk_source_completion_provider_activate_proposal virtual="0"



Work's fine (remove the abstract attribut).

2010/4/30 Abderrahim Kitouni <a kitouni gmail com>

Hello,

2010/4/27, Nicolas Joseph <gege2061 redaction-developpez com>:
Hello,

I try to replace an abstract method by a virtual method with this
metadata:

gtk_source_completion_provider_activate_proposal abstract="0" virtual="1"
But this has no effect.
The relevant code in vapigen/valagidlparser.vala says (around line 1620):

                               } else if (nv[0] == "abstract") {
                                       if (eval (nv[1]) == "1") {
                                               m.is_abstract = true;
                                       }
                               }
i.e it only looks if abstract is set to 1, you can fix it and report a bug
;-)

HTH,
Abderrahim




-- 
Nicolas Joseph


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