[yast-devel] Mod-ui: HVStretch widget dropped
Hola brave yast hackers! I'd like to use this way to announce that with mod-ui transition, HVStretch widget has been dropped and it should no longer be used. Should you still need it in your module, consider using e.g. `Empty, or some combination of `HStretch and `VStretch. These modules seem to be affected: ldap-client certify so please fix them accordingly, and if writing new code, please do not use HVStretch any more, to prevent crashes and other ugly things with new mod-ui. The documentation on UI widgets should be updated as well Thanks B. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter
On Tuesday 20 November 2007 16:23, Katarina Machalkova wrote:
I'd like to use this way to announce that with mod-ui transition, HVStretch widget has been dropped and it should no longer be used. Should you still need it in your module, consider using e.g. `Empty, or some combination of `HStretch and `VStretch.
Some more background: HVStretch() was the two-dimensional counterpart of HStretch() and VStretch(), which both are mostly useful in a VBox() or HBox(). But since both VBox() and HBox() operate only in one dimension anyway, only a VStretch() in a VBox() or a HStretch() in a HBox() has any effect. Both widgets could also be written as `VStretch() -> `Empty(`opt(`vstretch)) `HStretch() -> `Empty(`opt(`hstretch)) or as `VStretch() -> `VSpacing(`opt(`vstretch), 0 ) `HStretch() -> `HSpacing(`opt(`hstretch), 0 ) but that looks very ugly and is not very intuitive, of course. In the few places where `HVStretch() was actually used, it was used somewhat incorrectly: In yast2-certify it was used where `VStretch() should have been used, in yast2-ldap-client it was used as a placeholder for `ReplacePoint() contents. In the latter case, `Empty() is much more natural (and tells something like "this is just a dummy that will be replaced soon"). If anybody should really find a real use for the two-dimensional `HVStretch() (which I really doubt), it can be replaced with `HVStretch() -> `Empty(`opt(`hstretch, `vstretch))
The documentation on UI widgets should be updated as well
I have a local copy available at http://w3.suse.de/~sh/libyui-doc/ CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Forgot to add: for brief view of all changes in mod-ui, please check changelog for yast2-core (libyui): http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... B. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter
participants (2)
-
Katarina Machalkova
-
Stefan Hundhammer