1. EuGTK on Windows - The Test Files

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?

new topic     » topic index » view message » categorize

2. Re: EuGTK on Windows - The Test Files

euphoric said...

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.

euphoric said...

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.

euphoric said...

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGTK on Windows - The Test Files

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu