Re: EuGTK - GtkDrawingArea
- Posted by irv Oct 10, 2010
- 1316 views
? drwColorBand1 set(drwColorBand1,"modify bg",0,"white")
The first thing to do when something goes wrong is to inspect the object handle to see if it's valid.
The first line above should print some large integer, like 151824384. Zero means the object doesn't exist or hasn't been "realized" yet.
I don't suspect that is the problem here, but it's always good (easy too) to check that first.
------------------------------------------------------------- export function lookup_object_class_from_handle(atom handle) ------------------------------------------------------------- ? object_register -- (1) object list = vslice(object_register,1)
The problem seems to be here, so I would add line (1) to your GtkEngine.e file, and see what the object_register looks like.
{ {168724008,35}, {170355912,29}, {170355608,29}, {170355456,29},...
You should get something like the above, a sequence of {handle,id}. Apparently, somewhere along the line, you're getting a bogus atom thrown in there. I can't think how that can happen, because that particular error hasn't ever occurred for me.
Do the above, and post the offending part of the list.