Re: Hiding a placeholder's separator



Hi John,

On Wed, 15 Nov 2000, John Sullivan wrote:
> I just discovered that setting the state of all menu items in a
> placeholder (well, their commands, technically) to "hidden" does not
> hide the initial separator supplied by the placeholder. 
 
        I've just committed a patch to add the hidden attribute on the    
placeholder itself.           

> If the placeholder contains no items, then the separator isn't drawn,
> but if the placeholder contains only hidden items, then the separator
> is drawn. Am I right in assuming this is a bug that should be fixed in
> Bonobo?

        Well; the problem is that this gets rather expensive /
complicated. Currently the placeholder has a rather dumb heuristic for
determining whether to show its separator: whether there are any XML
elements inside itself; this means that in some situations you will get a
separator when you possibly don't want one. If you have an extremely 
complicated dynamic situation, I suggest that you use a non-delimted 
placeholder and insert any separators manualy.
  
        Regards,
  
                Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]