Hi all, I'm new to Vala and I'd like to have some help to solve a small but frustrating problem. Basically, I have a Gtk.UIManager that I want to initialize in this way: var ui_manager = new Gtk.UIManager(); ui_manager.add_ui_from_file(UI_FILE); I want to specify the constant UI_FILE at compile time, but I don't know how to do that. In C I would write something like that: #ifndef UI_FILE #define UI_FILE "default-path.xml" #endif and then I would call gcc with the option -DUI_FILE="something". I've tried to use the -D option of the Vala compiler, but it doesn't seem to work as I expect. Any ideas? Many thanks, Andrea -- Andrea Corbellini Ubuntu Member | http://www.ubuntu.com BeeSeek Member | http://www.beeseek.org
Attachment:
signature.asc
Description: This is a digitally signed message part