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

From: daniel wilms danielwilms at googlemail.com
Date: Fri Aug 21 10:36:26 EEST 2009
Hi Conny,

omweather used the orientation switch and it works fine. Perhaps it would
help you to have a look at the sources there:

https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/omweather/src/weather-portrait.c?revision=2951&root=omweather&view=markup

Cheers Daniel

2009/8/21 Cornelius Hald <hald at icandy.de>

> 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:
>
> hildon_gtk_window_set_portrait_flags(GTK_WINDOW(win),
> HILDON_PORTRAIT_MODE_SUPPORT);
>
> 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 :)
>
> Thanks!
> Conny
>
>
> [1] http://talk.maemo.org/showthread.php?t=30883
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090821/503e5f9f/attachment.htm 
More information about the maemo-developers mailing list