Re: [Vala] Vala-list Digest, Vol 26, Issue 8

golnaz nilieh wrote:
Thanks to all. I defined an empty constructor for Global, and called it in
main function. also I changed dataDir to a constant variable.
But a new question: Is there a way to pass the installation path to dataDir?
I use this macro in


can i use it as a variable in a vala source file?

Yes, all you need is a small vapi file for your 'config.h', e.g.:

Use it with

  --pkg config --vapidir path/to/my/vapi

and access it via


Best regards,


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