Murray Cumming wrote: > On Fri, 2009-05-29 at 13:20 +0200, Alberto Garcia wrote: >> To detect screen orientation changes you can e.g. use the >> "size-changed" signal of GdkScreen. > > This seems like a rather long-winded way to detect landscape or portrait > mode, requiring the hard coding of the dimensions.
if (width > height) { /* landscape */ } else if (width < height) { /* portrait */ } else { /* square :) */ } However, usually developer should not need to know mode but Hildon widgets should adjust themselves as much as possible during the relayout. Unfortunately that seems not to be the case, as Conny demonstrated earlier with some screenshots. BR, Henrik -- Henrik Hedberg - http://www.henrikhedberg.net/ _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers