From 827995f9a0e3aaa6bca043553cda97f9c5ef1b00 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 5 May 2009 23:43:18 -0400 Subject: [PATCH] Update the Python bindings to include id --- bindings/python/champlain/pychamplain.defs | 16 ++++++++++++++++ configure.ac | 1 + 2 files changed, 17 insertions(+) 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") -- 2.39.5