From 49513f9bd65e3f885193db674aa21ad1302da494 Mon Sep 17 00:00:00 2001 From: Victor Godoy Poluceno Date: Sun, 18 Oct 2009 15:38:45 -0200 Subject: [PATCH] Update python binding api to libchamplain 0.4.1 --- .../python/champlain/pychamplain-base.defs | 38 ++++++------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/bindings/python/champlain/pychamplain-base.defs b/bindings/python/champlain/pychamplain-base.defs index d0557a5..b6d38c6 100644 --- a/bindings/python/champlain/pychamplain-base.defs +++ b/bindings/python/champlain/pychamplain-base.defs @@ -107,7 +107,7 @@ (c-name "ChamplainMapProjection") (gtype-id "CHAMPLAIN_TYPE_MAP_PROJECTION") (values - '("r" "CHAMPLAIN_MAP_PROJECTION_MERCATOR") + '("mercator" "CHAMPLAIN_MAP_PROJECTION_MERCATOR") ) ) @@ -128,11 +128,6 @@ (return-type "ChamplainCache*") ) -(define-function cache_get_default - (c-name "champlain_cache_get_default") - (return-type "ChamplainCache*") -) - (define-method update_tile (of-object "ChamplainCache") (c-name "champlain_cache_update_tile") @@ -364,6 +359,15 @@ ) ) +(define-method remove_layer + (of-object "ChamplainView") + (c-name "champlain_view_remove_layer") + (return-type "none") + (parameters + '("ChamplainLayer*" "layer") + ) +) + (define-method get_coords_from_event (of-object "ChamplainView") (c-name "champlain_view_get_coords_from_event") @@ -917,23 +921,12 @@ (return-type "ChamplainMapSourceFactory*") ) -(define-function map_source_factory_get_default - (c-name "champlain_map_source_factory_get_default") - (return-type "ChamplainMapSourceFactory*") -) - (define-method dup_list (of-object "ChamplainMapSourceFactory") (c-name "champlain_map_source_factory_dup_list") (return-type "GSList*") ) -(define-method get_list - (of-object "ChamplainMapSourceFactory") - (c-name "champlain_map_source_factory_get_list") - (return-type "GSList*") -) - (define-method create (of-object "ChamplainMapSourceFactory") (c-name "champlain_map_source_factory_create") @@ -950,7 +943,7 @@ (parameters '("ChamplainMapSourceDesc*" "desc") '("ChamplainMapSourceConstructor" "constructor") - '("gpointer" "user_data") + '("gpointer" "data") ) ) @@ -999,15 +992,6 @@ ) ) -(define-function network_map_source_fill_tile - (c-name "champlain_network_map_source_fill_tile") - (return-type "none") - (parameters - '("ChamplainMapSource*" "map_source") - '("ChamplainTile*" "tile") - ) -) - ;; From champlain-marker.h -- 2.39.5