projects
/
drlaunch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1960405
)
Avoid problems with orientation
author
Stefanos Harhalakis
<v13@v13.gr>
Fri, 14 Jan 2011 00:16:28 +0000
(
00:16
+0000)
committer
Stefanos Harhalakis
<v13@v13.gr>
Fri, 14 Jan 2011 00:16:28 +0000
(
00:16
+0000)
src/widget.py
patch
|
blob
|
history
diff --git
a/src/widget.py
b/src/widget.py
index
1918367
..
11e4cf9
100755
(executable)
--- a/
src/widget.py
+++ b/
src/widget.py
@@
-129,6
+129,10
@@
class DrlaunchPlugin(IconGrid, HomePluginItem, FremantleRotation):
HomePluginItem.do_realize(self)
def on_orientation_changed(self, orientation):
+ # Avoid bugs
+ if orientation==None or len(orientation)==0:
+ return
+
# Get the first character of the string (l/p)
o=orientation[0]
self.setMode(o)