Extended Layout and Size Groups



Ok, fifth attempt. Using secure shell's SOCKS proxy and webmail this time.

Size groups rely on the assumption, widgets are never expanded over
their size request, unless explicitly requested (GTK_EXPAND,
expand-child property of GtkBox, ...). This assumption is not valid
anymore, when applying natural size expansion, as described by Havoc and
Behdad. See following videos for demonstration:

	http://taschenorakel.de/media/movies/size-group-problem.ogg
	http://taschenorakel.de/media/movies/size-group-problem2.ogg

So the question is, how to deal with natural size and size groups?

	1) Do not expand widgets to their natural size, when they have
           size groups in conflict with the container's expansion
           policy?

	2) Defer expansion of widgets with size groups, until all other
           children got their natural size, by sorting the children
           accordingly?

	3) Add some property to GtkSizeGroup to switch between
           minimum-size, and natural-size mode? Minimum-size mode is the
           current behavior, in natural-size mode the group would use
           the maximum natural size of its widgets as size request.

	4) Ignore the problem, as size groups were invented for grouping
           caption labels which are placed in different frames. Such
           label widgets never have ellipses enabled. Therefore their
	   natural size is equal to their minimum size.

	5) Better options?


Ciao,
Mathias
-- 
Mathias Hasselmann <mathias hasselmann gmx de>
Openismus GmbH: http://www.openismus.com/
Personal Site: http://taschenorakel.de/


Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10


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