1. EuGTK on Windows - The Test Files
- Posted by euphoric (admin) Aug 26, 2015
- 1366 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 have to change it to this
constant img = create(GtkImage,"thumbnails/eugtk.png")
for it to work properly.
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?
2. Re: EuGTK on Windows - The Test Files
- Posted by jimcbrown (admin) Aug 26, 2015
- 1327 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.
3. Re: EuGTK on Windows - The Test Files
- Posted by andi49 Aug 26, 2015
- 1425 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 have to change it to this
constant img = create(GtkImage,"thumbnails/eugtk.png")
for it to work properly.
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?
Hi
Move/copy the 'demos' from the EuGtk folder to %HOMEPATH%
HOMEPATH is normally '\Users\yourname\'
This resolves on Windows to the tilde '~'
Andreas