[Bese-devel] takeover-entire-window or call-as-root

Marco Baringer mb at bese.it
Sat Nov 5 13:50:02 UTC 2005


Hoan Ton-That <hoan at ton-that.org> writes:

> Hey Marco,
>
> How about naming `takeover-entire-window' `call-as-root' instead,
> and adding it to the repo?
>
> (defmacro call-as-root (component-class &rest initargs)
>   `(call-component (context.window-component *context*)
>                    (make-instance ,component-class , at initargs)))
>
> I find this macro useful.

ask and ye shall recieve. (though i decided to call it call-as-window
since in the rest of ucw we use "window" and not "root" to refer to
the entire browser frame).

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen



More information about the bese-devel mailing list