-def _hildon_mark_window_rotatable(window):
- # gtk documentation is unclear whether this does a "=" or a "|="
- window.set_flags(hildon.HILDON_PORTRAIT_MODE_SUPPORT)
-
-
-def _null_mark_window_rotatable(window):
- pass
-
-
-try:
- hildon.HILDON_PORTRAIT_MODE_SUPPORT
- mark_window_rotatable = _hildon_mark_window_rotatable
-except AttributeError:
- mark_window_rotatable = _null_mark_window_rotatable
-
-