[maemo-developers] Fremantle UI Portrait Mode

From: Henrik Hedberg henrik.hedberg at innologies.fi
Date: Fri May 29 23:07:32 EEST 2009
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/

More information about the maemo-developers mailing list