1. EuGTK demos - minor stuff

/demos$ eui test2.ex 
 
/demos/GtkEngine.e:178 in function defaults()  
true/false condition must be an ATOM  
 
... called from /demos/GtkEngine.e:232 in function create()   
 
... called from /demos/test2.ex:16  

/demos$ eui test61.ex 
 
/demos/GtkEngine.e:252 in function create()  
passing a sequence where an atom is required  
 
... called from /demos/test61.ex:4  

new topic     » topic index » view message » categorize

2. Re: EuGTK demos - minor stuff

Also: test6.ex test10.ex test18.ex test24.ex test27.ex test28.ex

Maybe something is wrong on my setup. But the whole /demos directory is a fresh download.

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

3. Re: EuGTK demos - minor stuff

These errors seem to be coming from trying to load an image which can't be found. First thing to do would be to be sure the image is there, and permissions are correct. Then you might try hard-coding the full path, instead of using the tilde:

constant img = create(GtkImage,"~/demos/images/euphoria.gif") 
--try instead: 
constant img = create(GtkImage,"/home/yourself/demos/images/euphoria.gif") 

If the hard-coded path works, then there's something wrong with canonical_path(), which I use when loading images.

You might add a line to GtkEngine.e which will give a better error report: on or around line 178, add the 'crash' line shown below:

	if string(args[1]) and file_exists(canonical_path(args[1])) then 
		return "new_from_file" 
	end if 
	if string(args[1]) and match("gtk-",args[1]) = 1 then 
		return "new_from_stock" 
	end if 
	if string(args[1]) then crash("Error: can't find %s\n",{args[1]}) end if -- ADD 
	if args[1] = 0 then return "new" end if 
new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGTK demos - minor stuff

Fixed (I hope) to show a 'missing image' when the image file can't be found. Update:

https://sites.google.com/site/euphoriagtk/Home

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

5. Re: EuGTK demos - minor stuff

Update Feb. 9, more bug fixes, added demos:

https://sites.google.com/site/euphoriagtk/Home

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

6. Re: EuGTK demos - minor stuff

irv said...

Updated Feb. 17, more bug fixes, and good printer support.

https://sites.google.com/site/euphoriagtk/Home

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

7. Re: EuGTK demos - minor stuff

irv said...

Updated March 22, more demos, more documentation.

https://sites.google.com/site/euphoriagtk/Home

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

8. Re: EuGTK demos - minor stuff

Hi Irv,

There are 2 entries on EuGTK in the RDS Archive now. What does it mean?

Regards


kinz

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

9. Re: EuGTK demos - minor stuff

kinz said...

Hi Irv,

There are 2 entries on EuGTK in the RDS Archive now. What does it mean?

Regards


kinz

I guess it means we can't use version numbers as part of the file name :( Maybe Rob can delete the older version, I don't see a way for me to do that.

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

10. Re: EuGTK demos - minor stuff

irv said...

I don't see a way for me to do that.

Try to use the "arrow_up" control to *update* the existing entry, do not use the link for a *new contrib* if you want just update some package.

To delete some extra entry, you can use that "arrow_up" and ask RDS to delete package in the "comments for RDS" window.

Good Luck!


kinz

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

Search



Quick Links

User menu

Not signed in.

Misc Menu