From: Pierre-Luc Beaudoin Date: Wed, 6 May 2009 03:43:18 +0000 (-0400) Subject: Update the Python bindings to include id X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827995f9a0e3aaa6bca043553cda97f9c5ef1b00;p=libchamplain Update the Python bindings to include id --- diff --git a/bindings/python/champlain/pychamplain.defs b/bindings/python/champlain/pychamplain.defs index 50de7d8..f17236c 100644 --- a/bindings/python/champlain/pychamplain.defs +++ b/bindings/python/champlain/pychamplain.defs @@ -488,6 +488,21 @@ ) ) +(define-method set_id + (of-object "ChamplainMapSource") + (c-name "champlain_map_source_set_id") + (return-type "none") + (parameters + '("const-gchar*" "id") + ) +) + +(define-method get_id + (of-object "ChamplainMapSource") + (c-name "champlain_map_source_get_id") + (return-type "const-gchar*") +) + (define-method set_name (of-object "ChamplainMapSource") (c-name "champlain_map_source_set_name") @@ -603,6 +618,7 @@ (c-name "champlain_network_map_source_new_full") (return-type "ChamplainNetworkMapSource*") (parameters + '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "license") '("const-gchar*" "license_uri") diff --git a/configure.ac b/configure.ac index b36df24..0cee836 100644 --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,7 @@ if test x$enable_python = xyes; then glib-2.0, gobject-2.0, clutter-0.8, + pyclutter-0.8, gconf-2.0, gtk+-2.0 ], have_python="yes", have_python="no")