[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:56:03 EET 2009
On Fri, 2009-10-30 at 08:45 +0100, ext Cornelius Hald wrote:
> On Fri, 2009-10-30 at 09:39 +0200, Kimmo Hämäläinen wrote:
> > > 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.
> 
> That sounds reasonable, but can I do that with the Hildon API or do I
> have to set X atoms manually?

I guess it's not possible via libhildon API right now (libhildon dudes
can (un)confirm), but here is an example of how to do it directly with
GDK.
http://maemo.gitorious.org/fremantle-hildon-desktop/hildon-desktop/blobs/master/tests/test-portrait-win.c#line29

-Kimmo

> Thanks!
> Conny
> 
> 

More information about the maemo-developers mailing list