Hi Conny,<br><br>omweather used the orientation switch and it works fine. Perhaps it would help you to have a look at the sources there:<br><br><a href="https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/omweather/src/weather-portrait.c?revision=2951&root=omweather&view=markup" target="_blank">https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/omweather/src/weather-portrait.c?revision=2951&root=omweather&view=markup</a><br>
<br>Cheers Daniel<br><br><div class="gmail_quote">2009/8/21 Cornelius Hald <span dir="ltr"><<a href="mailto:hald@icandy.de">hald@icandy.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all!<br>
<br>
For some time already Conboy has the ability to relayout itīs widget<br>
when switched from landscape into portrait mode.<br>
<br>
Now I wanted to know whether or not the window is actually rotated when<br>
the device is rotated, so I asked on tmo and Andre was so kind and did<br>
the test. It looks like it is not working[1].<br>
<br>
What I did is I added the following line to all windows of my application:<br>
<br>
hildon_gtk_window_set_portrait_flags(GTK_WINDOW(win),<br>
HILDON_PORTRAIT_MODE_SUPPORT);<br>
<br>
I assume that HILDON_PORTRAIT_MODE_SUPPORT means that this window is<br>
supporting the portrait mode and thus can be rotated. And that<br>
HILDON_PORTRAIT_MODE_REQUEST means that the UI should be switched to<br>
portrait mode no matter what the orientation of the device is, right?<br>
<br>
Is there something else I need to do? Did I do something wrong?<br>
<br>
Help would be very welcome :)<br>
<br>
Thanks!<br>
Conny<br>
<br>
<br>
[1] <a href="http://talk.maemo.org/showthread.php?t=30883" target="_blank">http://talk.maemo.org/showthread.php?t=30883</a><br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</blockquote></div><br>