Am Dienstag, den 20.11.2007, 14:49 +0100 schrieb Vincent Untz: > Le mardi 20 novembre 2007, à 14:32 +0100, Mathias Hasselmann a écrit : > > Am Dienstag, den 20.11.2007, 14:10 +0100 schrieb Vincent Untz: > > > Hi Mathias, > > > > > > Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : > > > > The solution to this problem is simple: Interpret the result of the > > > > "size-request" signal as absolutely minimum size and introduce a new > > > > function for expressing the natural size of a widget. > > > > > > Obviously something I should have asked during SoC... What about widgets > > > that may have more than one natural size? I'm thinking of the window > > > list here, which can group windows if necessary. Maybe that's the only > > > case where it would be useful, and if that's true, just forget this edge > > > case ;-) > > > > Actually its a good question and answering it should be part of the > > extended layout docs, I guess. > > > > The grouping feature of the window list actually is a fallback strategy, > > therefore the list should calculate its natural size by accumulating the > > natural sizes of its children in the ungrouped mode, were as it should > > accumulate minimum sizes in grouped mode for its own size-request. > > > > Well, unless you highly prefer the grouped mode, and see the ungrouped > > mode as fallback. In that uncertain case you'd also use the grouped mode > > for calculating natural size. > > The issue here is that the current way it works is that you can have > more than one natural sizes, No, you have only one natural size. > depending on the number of groups you can > [Epiphany][Epiphany[Epiphany][Terminal][Terminal] This one. > can become: > > [Epiphany ^][Terminal][Terminal] One fallback strategy. > or: > > [Epiphany ^][Terminal ^] Another one. > So it's not a bit more complex than having only a minimum size and a > natural size. No, it is simple. "Natural Size" is the size you ultimatively prefer. Ciao, Mathias -- Mathias Hasselmann <mathias hasselmann gmx de> http://taschenorakel.de/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil