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

From: Vlad Vasiliev vlad at gas.by
Date: Fri Aug 21 12:16:56 EEST 2009
Cornelius Hald wrote:
> Vlad Vasiliev wrote:
>> I couldn't find the attribute, like "Support rotation" in the current 
>> HildonWindow.
>
> http://maemo.org/api_refs/5.0/beta/hildon/hildon-Additions-to-GTK+.html#HildonPortraitFlags 
>
>
O, yes!
I forgot about it. Thanks

>> And I think that the use of signal "size-changed" is not the right 
>> way.(IMHO)
>> You will need control real value size of window.  You will need  
>> control changing to full screen and revert in window and in  next 
>> Maemo devices  size of screen may be large or small.
>
> Yes, there have been many discussions about that already. The result 
> of this discussion was that there is not a single correct way of doing 
> this.
> I´m assuming the following: width > height => landscape and height > 
> width => portrait. Of course this does not work if you have a square 
> screen ;) Well, I´m not super happy with it, but inside scratchbox 
> using xrandr to rotate the screen it works.
>
> I think the bottom line is just that it´s very poorly documented and 
> that it would be nice to have some explicit API for dealing with that. 
> Or at least a "official" code sample / tutorial / best practice...
>
>

I agree with you. We need more examples of source code for new features 
of maemo 5.

Cheers,
Vlad.
More information about the maemo-developers mailing list