]> err.no Git - libchamplain/commitdiff
Update python binding api to libchamplain 0.4.1
authorVictor Godoy Poluceno <victorpoluceno@gmail.com>
Sun, 18 Oct 2009 17:38:45 +0000 (15:38 -0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 18 Oct 2009 19:14:09 +0000 (15:14 -0400)
bindings/python/champlain/pychamplain-base.defs

index d0557a58ddf45922e5aece049c7741c03aca49dc..b6d38c62c319a2a8ff9eeb5c0177dc5f4efafc7d 100644 (file)
   (c-name "ChamplainMapProjection")
   (gtype-id "CHAMPLAIN_TYPE_MAP_PROJECTION")
   (values
-    '("r" "CHAMPLAIN_MAP_PROJECTION_MERCATOR")
+    '("mercator" "CHAMPLAIN_MAP_PROJECTION_MERCATOR")
   )
 )
 
   (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")
   )
 )
 
+(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")
   (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")
   (parameters
     '("ChamplainMapSourceDesc*" "desc")
     '("ChamplainMapSourceConstructor" "constructor")
-    '("gpointer" "user_data")
+    '("gpointer" "data")
   )
 )
 
   )
 )
 
-(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