Re: EuGTK on Windows - The Test Files
- Posted by jimcbrown (admin) Aug 26, 2015
- 1207 views
In the test files, you have file references like:
constant img = create(GtkImage,"~/demos/thumbnails/eugtk.png")
When running the test sources from the demos/ folder, this path doesn't work on Windows. Does that actually work on Linux?
I would expect it to. The tilde usually translates to the user's home directory, so that should be something like "/home/euphoric/demos/thumbnails/eugtk.png" or something - an absolute path.
I have to change it to this
constant img = create(GtkImage,"thumbnails/eugtk.png")
for it to work properly.
Probably a good idea. Even on nix, some users might like to install things in non-standard and very weird looking locations anyways - so a relative path would probably work better in these cases.
You know what you could do with your test files is put a comment in the file, maybe something like:
-- TEST-DESC:Display icon and button
that your test-all program could parse and display in a list. Or make a test program browser that uses the description.
Get it?
Sounds simple enough.