[maemo-developers] Disable portrait support for dialog with Hildon

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Fri Oct 30 09:39:40 EET 2009
On Thu, 2009-10-29 at 17:31 +0100, ext Piñeiro wrote:
> From: Cornelius Hald <hald at icandy.de>
> > the main window of my app supports portrait mode. Now I have a settings
> > dialog which does not support portrait mode but it inherits those flags
> > from the main window.
> So you'll have the main window in portrait mode, and there is a
> possibility that a dialog in non-portrait mode appear?
> I'm not a expert in usability, but this would be confusing for me, and
> it would force me to rotate 90 degrees the device in order to read
> properly the dialog.
> There isn't any possibility to support the portrait mode in the
> dialog?
> > How can I remove the flags from the dialog window?
> > 
> > I tried the following, but it does not work:
> > 
> > hildon_gtk_window_set_portrait_flags (
> Try with a 0 instead of ~HILDON_PORTRAIT_MODE_SUPPORT.

The problem here seems to be that passing 0 will cause deletion of the
property. That means that since it's missing from the window, it is
inherited from the parent window. You would need to keep the SUPPORT
property but set the value to 0, to explicitly tell that portrait is not
supported and should not be inherited from the parent.


> ===
> API (apinheiro at igalia.com)
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list