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 _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers