diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-26 13:51:09 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-26 13:51:09 -0400 |
commit | 555aa57e58147b231ec45cee63dfaa72e6f36ea6 (patch) | |
tree | 8eb6a4fd4da3edccdbd5a3bc55e9acc0e5180723 /xgps | |
parent | f59eb2d348d30210b12251b164bc4b8b0cbdfa8c (diff) | |
download | gpsd-555aa57e58147b231ec45cee63dfaa72e6f36ea6.tar.gz |
Remove a dependency on the oldstyle compatibility shim.
Diffstat (limited to 'xgps')
-rwxr-xr-x | xgps | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -149,7 +149,7 @@ class SkyView(gtk.DrawingArea): self.draw_string(widget, x+10, y, "W") # The satellites for sat in self.satellites: - (x, y) = self.pol2cart(sat.azimuth, sat.elevation) + (x, y) = self.pol2cart(sat.az, sat.el) if sat.ss < 10: self.set_color("Black") elif sat.ss < 30: @@ -561,12 +561,13 @@ class Base: if hook: # Remove this guard when we have all hooks widget.set_text(hook(self, tpv)) - def update_skyview(self, satellites): + def update_skyview(self, data): "Update the satellite list and skyview." + satellites = data.satellites for (i, satellite) in enumerate(satellites): self.set_satlist_field(i, 0, satellite.PRN) - self.set_satlist_field(i, 1, satellite.elevation) - self.set_satlist_field(i, 2, satellite.azimuth) + self.set_satlist_field(i, 1, satellite.el) + self.set_satlist_field(i, 2, satellite.az) self.set_satlist_field(i, 3, satellite.ss) yesno = 'N' if satellite.used: @@ -602,7 +603,7 @@ class Base: return True self.rawdisplay.set_text(self.daemon.response.strip()) if self.daemon.data["class"] == "SKY": - self.update_skyview(self.daemon.satellites) + self.update_skyview(self.daemon.data) elif self.daemon.data["class"] == "TPV": self.update_gpsdata(self.daemon.data) elif self.daemon.data["class"] == "AIS": |