Skip to content

Commit

Permalink
Fix forced-Lanscape mode for Fremantle PR1.2 (Maemo bug 10406)
Browse files Browse the repository at this point in the history
PR1.2 broke forced-Landscape mode, as the window flags have
different semantics (although more sane) in the new version.
  • Loading branch information
thp committed Jun 3, 2010
1 parent 31392de commit 0c7259e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gpodder/gtkui/frmntl/portrait.py
Expand Up @@ -161,7 +161,11 @@ def _orientation_changed(self, orientation):
# Ignore repeated requests
return

flags = hildon.PORTRAIT_MODE_SUPPORT
flags = 0

if orientation != self._LANDSCAPE:
flags |= hildon.PORTRAIT_MODE_SUPPORT

if orientation == self._PORTRAIT:
flags |= hildon.PORTRAIT_MODE_REQUEST

Expand Down

0 comments on commit 0c7259e

Please sign in to comment.