New style request
authorEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:21:50 +0000 (23:21 +0800)
committerEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:21:50 +0000 (23:21 +0800)
plugins/55_gpx_trace.py

index b4c1106134b48d6fd31ac1ff5a5d411e06356ee5..28b00f8ab8010294a93dd4e79fd46514942ffc50 100644 (file)
@@ -42,11 +42,11 @@ class GPXTracer(gtk.ToggleAction):
 
     def start(self):
         zavai.info("GPX trace started")
-        self.registry.resource("gpx").request(self)
+        self.registry.resource("gpx").connect("gpx", self)
 
     def stop(self):
         zavai.info("GPX trace ended")
-        self.registry.resource("gpx").release(self)
+        self.registry.resource("gpx").disconnect("gpx", self)
 
 class GPXWaypoint(gtk.Action):
     def __init__(self, registry, **kw):