logo       

Re: issues (bug?) with with-tab-layout in beirc: msg#00007

lisp.mcclim.devel

Subject: Re: issues (bug?) with with-tab-layout in beirc

"It's not a bug, it's a feature."

You want to use 'find-pane-named' rather than 'get-frame-pane'. Per
the CLIM spec, get-frame-pane only searches for stream panes, whereas
find-pane-named will search all panes, including gadgets. (I
personally disagree with this design, but I didn't write the spec.)

I took a quick look at how the tab-layout-pane is implemented. It is
comprised of two pieces: a stream pane implementing the tabs
themselves (the 'tab-bar-pane'), and a layout pane derived from
vrack-pane (a gadget) containing the tab-bar-pane and the panes being
managed. The with-tab-layout macro assigns the name to the layout pane
rather than the tab-bar-pane (rightly, since we want to name the
highest member of the hierarchy), so get-frame-pane ignores it. This
is certainly the correct behavior, but the behavior of get-frame-pane
is unfortunate.

On 4/4/06, rpgoldman@xxxxxxxxxxxxx <rpgoldman@xxxxxxxxxxxxx> wrote:
> I'm pretty sure that this is a bug, and that the tab-layout pane IS
> intended to be exposed to get-frame-pane. But I'm not sure how to fix
> it, myself.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise