Re: UI merging problem?



Hi Archit,

On Sat, 2 Jun 2001, Darin Adler wrote:
> The key is placeholders. Rather than merging into the Game menu, you
> should merge into a placeholder in the Game menu at the right
> location.  The empty placeholder is defined in the main program's UI
> definition file, and then the same placeholder is redefined in the
> component, only now it contains the New Game menu item.

        Quite right, also there is the concept of the default placeholder.
If you have this:

<submenu name="foo"> 
        <placeholder name="baa"/>
        <separator/>
        <placeholder>
        <menuitem name="wibble" _label="E_xit"/>
</submenu>
  
        You can merge an item explicitely into the 'baa' placeholder at   
path /whatever/foo/baa, or if you just merge new items into /whatever/foo
they should appear above 'E_xit' inside the foo submenu.
  
        This is probably a simpler and less complex [ contractualy ]
strategy for you to use - most simple containers probably want to do this.
  
        Regards,
  
                Michael.

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





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