clean-ups
[drlaunch] / src / widget.py
index 53bf2df..ed254c0 100755 (executable)
@@ -82,7 +82,6 @@ class DrlaunchPlugin(IconGrid, HomePluginItem, FremantleRotation):
        HomePluginItem.do_realize(self)
 
     def on_orientation_changed(self, orientation):
-       print "orch:", orientation
        o=orientation[0]
        self.setMode(o)
 #      self.queue_draw()
@@ -91,19 +90,13 @@ class DrlaunchPlugin(IconGrid, HomePluginItem, FremantleRotation):
        IconGrid.do_expose_event(self, event)
        HomePluginItem.do_expose_event(self, event)
 
-    def do_buttonn_press_event(self, event):
-       print "press0"
-
     def slot_show_settings(self, dt):
-       print "settings", dt
        s=WinConfig()
        s.show_all()
        s.connect('destroy', self.slotConfigDestroy)
 
     def slotConfigDestroy(self, sender):
-       print "destroy", sender
        dt=sender.getData()
-       print "dt:", dt
        config.setSize(dt['size'])
        config.setApps(dt['apps'])
        config.save()
@@ -115,8 +108,8 @@ class DrlaunchPlugin(IconGrid, HomePluginItem, FremantleRotation):
 #      self.queue_draw()
 
     def signalLongpress(self, sender, icon):
-       print "launch:", icon.name
-       launcher.launch(icon.name)
+       if icon.name!=None and icon.name!='':
+           launcher.launch(icon.name)
 
     def resize(self):
        w=(self.size * config.iconsize) + \