Re: GtkOrientable and GtkBox



Am Wed, 03 Jun 2009 16:18:17 +0800
schrieb Davyd Madeley <davyd madeley id au>:

> On Wed, 2009-06-03 at 10:08 +0200, Sven Neumann wrote:
> > Hi,
> > 
> > On Wed, 2009-06-03 at 14:25 +0800, Davyd Madeley wrote:
> > > I was experimenting with using GtkOrientable today and came
> > > across what might be an oversight when using it with GtkBox'like
> > > objects.
> > > 
> > > I wanted to turn a hbox into a vbox, which is fine. However the
> > > buttons in the box are then clearly in the reverse order to the
> > > one that makes sense.
> > 
> > What order are they? What order would you suggest makes more sense?
> 
> This would be a usage-specific thing.
> 
> They're in the order they were packed. When you swap the orientation
> of the vbox, they're still in the order they were packed, but that
> order might be backwards from the order you desire (i.e. if you were
> going to build the vbox from scratch).
> 
> E.g., you might have:
> 
>         [1] [2] [3]
>         
> Which orients to become
> 
>         [1]
>         [2]
>         [3]
> 
> But for whatever reason, what you desired was:
> 
>         [3]
>         [2]
>         [1]
> 

Hey David,

how is this related to GtkOrientable at all? This was always
how a vertical box worked, ever since GtkVBox was there. There is
nothing new with it.

I'm afraid I don't see how Gtk could help you out, if what you
need really is a specific packing. Anything but the current way is
pretty much random and up to the application.

Yours,
    Christian


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