[maemo-developers] Howto enable portrait mode support on Fremantle
From: Graham Cobb g+770 at cobb.uk.netDate: Fri Aug 21 16:49:20 EEST 2009
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday 21 August 2009 14:26:33 Andrew Flegg wrote: > My interpretation: > > * You set HILDON_PORTRAIT_MODE_SUPPORT _if_ the device is portrait > _before_ you open a window. Why? What happens if the device is portrait before you open a window and you don't set HILDON_PORTRAIT_MODE_SUPPORT? And is there some sort of race condition here? > * You pick up events (DBus or size-changed depending on whether > you need orientation or just aspect) and then explicitly > set HILDON_PORTRAIT_MODE_REQUEST. So HILDON_PORTRAIT_MODE_REQUEST tells all the widgets in the window to please rearrange themselves for portrait mode (if they support that)? > function void setPortraitFlagsIfAppropriate(window) { > if (isPortrait()) > window.set(HILDON_PORTRAIT_SUPPORT | HILDON_PORTRAIT_REQUEST) > else > window.unset(HILDON_PORTRAIT_SUPPORT | HILDON_PORTRAIT_REQUEST) > } So, why are there two flags? I still don't understand what HILDON_PORTRAIT_MODE_SUPPORT does. Sorry to be so dumb -- I keep telling people I am not a GUI guy! Graham
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]