Re: EuGTK - GtkDrawingArea

new topic     » goto parent     » topic index » view thread      » older message » newer message
------------------------------------------------------------- 
export function lookup_object_class_from_handle(atom handle) 
------------------------------------------------------------- 
ifdef LOOK then 
	? object_register 
end ifdef 
object list = vslice(object_register,1) 
integer x = find(handle,list) 
if x then  
	ifdef LOOK then 
		printf(1,"LOOKUP OBJ CLASS FROM HANDLE: class: %d handle:%d\n",{x,handle}) 
	end ifdef 
	return object_register[x][CLASS] 
else 
	return -1 
end if 
end function 

Heck, let's do this the easy way - just replace the routine with the code above, and run your program with -d LOOK as a parameter.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu