[libchamplain/libchamplain-0-4] python-binding: Add constructor definitions to MapSource and NetworkMapSource
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] python-binding: Add constructor definitions to MapSource and NetworkMapSource
- Date: Sat, 9 Jan 2010 19:58:47 +0000 (UTC)
commit 43ea595a9d3dc6086544e2f2ab1819002f127f2c
Author: Victor Godoy Poluceno <victorpoluceno gmail com>
Date: Mon Dec 28 20:55:13 2009 -0200
python-binding: Add constructor definitions to MapSource and NetworkMapSource
Avoid the warning message: "Warning: Constructor for ChamplainMapSource needs
to be updated to new API".
.../python/champlain/pychamplain-boxed-types.defs | 2 +-
.../python/champlain/pychamplain-constructors.defs | 14 ++++++++++++++
bindings/python/champlain/pychamplain.defs | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/bindings/python/champlain/pychamplain-boxed-types.defs b/bindings/python/champlain/pychamplain-boxed-types.defs
index c4b39af..37c03aa 100644
--- a/bindings/python/champlain/pychamplain-boxed-types.defs
+++ b/bindings/python/champlain/pychamplain-boxed-types.defs
@@ -1,5 +1,5 @@
;; -*- scheme -*-
-; object definitions ...
+; boxed type definitions ...
(define-boxed Point
(in-module "Champlain")
diff --git a/bindings/python/champlain/pychamplain-constructors.defs b/bindings/python/champlain/pychamplain-constructors.defs
new file mode 100644
index 0000000..3451eea
--- /dev/null
+++ b/bindings/python/champlain/pychamplain-constructors.defs
@@ -0,0 +1,14 @@
+;; -*- scheme -*-
+; constructor definitions ...
+
+(define-function map_source_new
+ (c-name "champlain_map_source_new")
+ (is-constructor-of "ChamplainMapSource")
+ (return-type "ChamplainMapSource*")
+)
+
+(define-function network_map_source_new
+ (c-name "champlain_network_map_source_new")
+ (is-constructor-of "ChamplainNetworkMapSource")
+ (return-type "ChamplainNetworkMapSource*")
+)
diff --git a/bindings/python/champlain/pychamplain.defs b/bindings/python/champlain/pychamplain.defs
index ca7ab85..183890c 100644
--- a/bindings/python/champlain/pychamplain.defs
+++ b/bindings/python/champlain/pychamplain.defs
@@ -1,5 +1,5 @@
;; -*- scheme -*-
-; object definitions ...
(include "pychamplain-base.defs")
(include "pychamplain-boxed-types.defs")
+(include "pychamplain-constructors.defs")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]