]> err.no Git - libchamplain/commitdiff
Update the python bindings to wrap the new set min/max zoom level and ensure visible...
authorMike Sheldon <mike@mikeasoft.com>
Sat, 28 Mar 2009 16:06:26 +0000 (16:06 +0000)
committerMike Sheldon <mike@mikeasoft.com>
Sat, 28 Mar 2009 16:06:26 +0000 (16:06 +0000)
bindings/python/champlain/pychamplain.defs

index 9d5e6c3b1c7f7f7f408d63b942b11e6fd4731360..2eb59f1a1573c4b344aebf2e8c6f6aad371ecd6a 100644 (file)
   )
 )
 
+(define-method set_min_zoom_level
+  (of-object "ChamplainView")
+  (c-name "champlain_view_set_min_zoom_level")
+  (return-type "none")
+  (parameters
+    '("gint" "zoom_level")
+  )
+)
+
+(define-method set_max_zoom_level
+  (of-object "ChamplainView")
+  (c-name "champlain_view_set_max_zoom_level")
+  (return-type "none")
+  (parameters
+    '("gint" "zoom_level")
+  )
+)
+
+(define-method ensure_visible
+  (of-object "ChamplainView")
+  (c-name "champlain_view_ensure_visible")
+  (return-type "none")
+  (parameters
+    '("gdouble" "lat1")
+    '("gdouble" "lon1")
+    '("gdouble" "lat2")
+    '("gdouble" "lon2")
+    '("gboolean" "animate")
+  )
+)
+
+(define-method ensure_markers_visible
+  (of-object "ChamplainView")
+  (c-name "champlain_view_ensure_markers_visible")
+  (return-type "none")
+  (parameters
+    '("ChamplainMarker*[]" "markers")
+    '("gboolean" "animate")
+  )
+)
+
 (define-method set_map_source
   (of-object "ChamplainView")
   (c-name "champlain_view_set_map_source")
 (define-method get_tile_uri
   (of-object "ChamplainNetworkMapSource")
   (c-name "champlain_network_map_source_get_tile_uri")
-  (return-type "const-gchar*")
+  (return-type "gchar*")
   (parameters
     '("gint" "x")
     '("gint" "y")