Change defaults to 'no longpress' and 'rotate icons individually'.
authorStefanos Harhalakis <v13@v13.gr>
Tue, 10 Aug 2010 10:31:33 +0000 (10:31 +0000)
committerStefanos Harhalakis <v13@v13.gr>
Tue, 10 Aug 2010 10:31:33 +0000 (10:31 +0000)
Fix drlaunch_widget.py to be able to be ran from command line.

src/config.py
src/drlaunch_widget.py

index ff8cf1a..5bc5f23 100755 (executable)
@@ -63,8 +63,8 @@ class Config:
 #      self.iconspace = 42     # For 4 icons (height)
        self.iconspace = 36     # For 8 icons (width)
        self.apps=None
-       self.indiv=False
-       self.longpress=True
+       self.indiv=True
+       self.longpress=False
        self.animate=True
 
        self.maxsz=(8,4)
index 92f325a..54ad48c 100755 (executable)
@@ -30,6 +30,9 @@ class DrlaunchPlugin(widget.DrlaunchPlugin):
 hd_plugin_type = DrlaunchPlugin
 
 if __name__=="__main__":
+    import gobject
+    import gtk
+
     gobject.type_register(hd_plugin_type)
     obj=gobject.new(hd_plugin_type, plugin_id="plugin_id")
     obj.show_all()