Hi, 2010/6/27 Andrew <[email protected]>: > On 27/06/10 17:32, Abderrahim Kitouni wrote: >> Hi, >> >> 2010/6/27 Andrew <[email protected]>: >>> On 27/06/10 08:16, Andrew wrote: >>> Ignore that, I managed to do the APP_INDICATOR_TYPE correctly in the >>> vapi file, however I don't seem to have any success with the >>> APP_INDICATOR_TYPE_INDICATOR_CATEGORY. >>> >>> Attached is the vapi file, could you point me in the right direction? >> >> in : >> [CCode (cprefix = "APP_INDICATOR_CATEGORY_", cheader_filename = >> "libappindicator/app-indicator.h")] >> public enum Category { >> >> add type_id="APP_INDICATOR_TYPE_INDICATOR_CATEGORY" just like you did >> it with the class. I see no reason for it not working. >> >> Abderrahim > > Nope doesn't work, the error is: > > /home/andrew/Software/Projects/wasiliana/src/indicator.vala.c: In > function ‘wapp_indicator_category_from_enum’: > /home/andrew/Software/Projects/wasiliana/src/indicator.vala.c:82: error: > ‘APP_INDICATOR_TYPE_INDICATOR_CATEGORY’ undeclared
For me, that seems like it works : valac is now using APP_INDICATOR_TYPE_INDICATOR_CATEGORY , so the problem is that it isn't in the included header. You need to add the correct header (app-indicator-enum-types.h in this case, AFAICS) to cheader_filename (separate by a comma). HTH, Abderrahim P.S. Don't forget to report all this once you get it to work : the vapi is broken and this isn't the proper way to fix it. _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
