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

From: Cornelius Hald hald at icandy.de
Date: Fri Aug 21 10:07:15 EEST 2009
Hi all!

For some time already Conboy has the ability to relayout it´s widget 
when switched from landscape into portrait mode.

Now I wanted to know whether or not the window is actually rotated when 
the device is rotated, so I asked on tmo and Andre was so kind and did 
the test. It looks like it is not working[1].

What I did is I added the following line to all windows of my application:


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?

Is there something else I need to do? Did I do something wrong?

Help would be very welcome :)


[1] http://talk.maemo.org/showthread.php?t=30883
More information about the maemo-developers mailing list