On 12/01/10 21:05 +0100, Hartmut Goebel wrote:
> Hi,
> 
> 
> I'm wondering why there are two elements <child1> and <child2> for
> h/vpanned?
> 
> In the schema, both are optional::
> 
>   hpaned = element hpaned {
>       paned.attlist, paned.child1?, paned.child2?
>  }
> 
> Thus one could write:
> 
>   <hpaned><child1>...</child1></hpanned>
> or
>   <hpaned><child2>...</child2></hpanned>
> or
>   <hpaned><child1>...</child1><child2>...</child2></hpanned>
> 
> But what is the difference between first and second entry?
> 
> 
> Since we are on the way of toughing all XML files, we could take the
> chance and change the schema here, to. I propose using::
> 
>   hpaned = element hpaned { paned.attlist, paned.child, paned.child? }
> 
> One element is required, since an empty h/vpanned is useless.
> 

It is because gtk.Paned has pack1 and pack2. But it could be possible to
deduce which one to use.
I will be to force to have two childs because only one is useless.

If you fix it, do it in an other patch. And it will need a fix for the client
also.


-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier

Attachment: pgpR23HQRqRaT.pgp
Description: PGP signature

Reply via email to