From: Mike Sheldon Date: Sat, 28 Mar 2009 16:06:26 +0000 (+0000) Subject: Update the python bindings to wrap the new set min/max zoom level and ensure visible... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f0d4815e8b7926477ae98a0b487dd499ca55768;p=libchamplain Update the python bindings to wrap the new set min/max zoom level and ensure visible methods --- diff --git a/bindings/python/champlain/pychamplain.defs b/bindings/python/champlain/pychamplain.defs index 9d5e6c3..2eb59f1 100644 --- a/bindings/python/champlain/pychamplain.defs +++ b/bindings/python/champlain/pychamplain.defs @@ -147,6 +147,47 @@ ) ) +(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") @@ -439,7 +480,7 @@ (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")