projects
/
watersofshiloah
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
523c077
)
Fixing some orientation issues
author
Ed Page
<eopage@byu.net>
Wed, 16 Mar 2011 02:49:44 +0000
(21:49 -0500)
committer
Ed Page
<eopage@byu.net>
Wed, 16 Mar 2011 02:58:05 +0000
(21:58 -0500)
src/hildonize.py
patch
|
blob
|
history
src/windows/_base.py
patch
|
blob
|
history
diff --git
a/src/hildonize.py
b/src/hildonize.py
index
c07f09b
..
2e2c95c
100644
(file)
--- a/
src/hildonize.py
+++ b/
src/hildonize.py
@@
-288,7
+288,7
@@
def _hildon_window_to_portrait(window):
def _hildon_window_to_landscape(window):
# gtk documentation is unclear whether this does a "=" or a "&= ~"
def _hildon_window_to_landscape(window):
# gtk documentation is unclear whether this does a "=" or a "&= ~"
- flags = hildon.PORTRAIT_MODE_SUPPORT
+ flags = 0
hildon.hildon_gtk_window_set_portrait_flags(window, flags)
hildon.hildon_gtk_window_set_portrait_flags(window, flags)
diff --git
a/src/windows/_base.py
b/src/windows/_base.py
index
8a14489
..
c38165a
100644
(file)
--- a/
src/windows/_base.py
+++ b/
src/windows/_base.py
@@
-115,7
+115,10
@@
class BasicWindow(gobject.GObject, go_utils.AutoSignal):
return self._window
def show(self):
return self._window
def show(self):
- hildonize.window_to_portrait(self._window)
+ if self._isPortrait:
+ hildonize.window_to_portrait(self._window)
+ else:
+ hildonize.window_to_landscape(self._window)
self._window.show_all()
def save_settings(self, config, sectionName):
self._window.show_all()
def save_settings(self, config, sectionName):
@@
-478,6
+481,7
@@
class PresenterWindow(BasicWindow):
self._node.title,
self._node.subtitle,
)
self._node.title,
self._node.subtitle,
)
+ return didChange
@property
def _active(self):
@property
def _active(self):