[libchamplain/libchamplain-0-12] Fixed call to unexisting get_coords() method in launcher-gtk.py



commit 223769f060394b09ec85220fe278fb03a9064fe9
Author: Pablo Castellano <pablo anche no>
Date:   Sat May 26 19:54:07 2012 +0200

    Fixed call to unexisting get_coords() method in launcher-gtk.py

 demos/launcher-gtk.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/launcher-gtk.py b/demos/launcher-gtk.py
index 36f06c7..4e79e68 100755
--- a/demos/launcher-gtk.py
+++ b/demos/launcher-gtk.py
@@ -120,7 +120,7 @@ class LauncherGTK:
             self.layer.animate_out_all_markers()
 
     def mouse_click_cb(self, actor, event, view):
-        x, y = event.get_coords()
+        x, y = event.x, event.y
         lat, lon = view.x_to_longitude(x), view.y_to_latitude(y)
         print "Mouse click at: %f %f" % (lon, lat)
         return True



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]