Re: GtkOrientable and GtkBox



On Wed, 2009-06-03 at 13:09 +0200, Sven Neumann wrote:

> On Wed, 2009-06-03 at 19:03 +0800, Davyd Madeley wrote:
> 
> > It's not really related to GtkOrientable per se, but it's specifically
> > that when you change the runtime orientation you might also wish to
> > reverse the packing order (I guess think about wishing to do a -90
> > degree rotation rather than a +90 degree rotation).
> > 
> > Previously because you couldn't change the orientation, this was never
> > something that came up.
> > 
> > Does this clear up what I mean?
> 
> Sure. But it would probably help to come up with a use case for this. I
> can not think of any good use case for changing the box orientation at
> run-time. And without such a use case, it becomes even harder to imagine
> that one would also want to reverse the packing order.

I don't actually want to change it at run time per-se (it's not going to
be a preference in a UI), but I do want to be able to change the
orientation based upon a style-property from the theme.

Specifically this work relates to being able to offer style-properties
to rearrange some GTK+ widgets (e.g. GtkDialog) for handheld-tablet
environments using the GTK theme.

In general though, GtkOrientable already exists. People are bound to use
it.

--d

-- 
Davyd Madeley

http://www.davyd.id.au/
08B0 341A 0B9B 08BB 2118  C060 2EDD BB4F 5191 6CDA



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