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.

Berto
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to