(no commit message)
[drlaunch] / test.py
diff --git a/test.py b/test.py
index c674ed4..0dabe90 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -116,7 +116,7 @@ class TestPlugin(HomePluginItem, Icons, FremantleRotation):
     def __init__(self):
        HomePluginItem.__init__(self)
        Icons.__init__(self)
-       FremantleRotation.__init__(self)
+       FremantleRotation.__init__(self, 'TestPlugin')
 
        self.setMode('l')
 
@@ -188,6 +188,9 @@ class TestPlugin(HomePluginItem, Icons, FremantleRotation):
 
     def do_button_press_event(self, event):
        print "press"
+
+    def do_button_press_event_old(self, event):
+       print "press"
        if event.type==gdk.BUTTON_PRESS:
            print "press", event.type
            if self.mode=='p':
@@ -202,6 +205,9 @@ class TestPlugin(HomePluginItem, Icons, FremantleRotation):
 
     def on_orientation_changed(self, orientation):
        print "orch:", orientation
+       o=orientation[0]
+       self.setMode(o)
+       self.queue_draw()
 
 hd_plugin_type = TestPlugin