Enabled direct access to map widget
[wifihood] / wifiscanner / wifiscanner.py
index 24e9ee5..5568311 100755 (executable)
@@ -148,13 +148,14 @@ if hildon :
 
 else :
 
-    class MapWindow ( wifiview.AbstractMapWindow , gtk.Frame ) :
+    class MapWindow ( gtk.Frame ) :
 
         def __init__(self):
             gtk.Frame.__init__( self )
-            self.set_flags( self.flags() | gtk.CAN_FOCUS )
-            wifiview.AbstractMapWindow.__init__(self)
-            self.add( self.vbox )
+
+            self.config = wifimap.config.Configuration()
+            self.config.zoom = 16
+            self.add( wifiview.mapWidget( self.config , (640,400) ) )
 
     class Wifiscanner ( AbstractWifiscanner , gtk.Window ) :