[maemo-developers] Howto enable portrait mode support on Fremantle

From: Cornelius Hald hald at icandy.de
Date: Fri Aug 21 15:53:01 EEST 2009
On Fri, 2009-08-21 at 14:04 +0200, Alberto Garcia wrote:
> On Fri, Aug 21, 2009 at 09:07:15AM +0200, Cornelius Hald wrote:
> 
> > hildon_gtk_window_set_portrait_flags(GTK_WINDOW(win), 
> > HILDON_PORTRAIT_MODE_SUPPORT);
> 
> Use HILDON_PORTRAIT_MODE_SUPPORT | HILDON_PORTRAIT_MODE_REQUEST
> 
> > I assume that HILDON_PORTRAIT_MODE_SUPPORT means that this window
> > is supporting the portrait mode and thus can be rotated. And that
> > HILDON_PORTRAIT_MODE_REQUEST means that the UI should be switched
> > to portrait mode no matter what the orientation of the device is,
> > right?
> 
> Exactly.
> 
> _SUPPORT means that e.g. if the device is in portrait mode and your
> app comes up, it won't be rotated to landscape.

Ok, so _SUPPORT does _not_ mean that the desktop is automatically
rotated once the device is rotated? I'm still confused sorry...

Maybe you could just write what the expected outcome is when we have one
window open. An on this window we call
hildon_gtk_window_set_portrait_flags().

1) We call it with HILDON_PORTRAIT_MODE_SUPPORT
2) We call it with HILDON_PORTRAIT_MODE_REQUEST
3) We call it with HILDON_PORTRAIT_MODE_SUPPORT|
HILDON_PORTRAIT_MODE_REQUEST

Sorry for being so slow, but I really don't get it :(
Conny


More information about the maemo-developers mailing list