[libchamplain/libchamplain-0-4] python-binding: provides writable attributes to champlain.Point
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] python-binding: provides writable attributes to champlain.Point
- Date: Sat, 9 Jan 2010 19:58:26 +0000 (UTC)
commit f0ae9854c2b8248c4ccb8129b385046662c83f76
Author: Victor Godoy Poluceno <victorpoluceno gmail com>
Date: Thu Dec 3 15:52:30 2009 -0200
python-binding: provides writable attributes to champlain.Point
bindings/python/champlain/pychamplain.override | 30 ++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/champlain/pychamplain.override b/bindings/python/champlain/pychamplain.override
index 49dce3d..99c55fc 100644
--- a/bindings/python/champlain/pychamplain.override
+++ b/bindings/python/champlain/pychamplain.override
@@ -425,3 +425,33 @@ _wrap_champlain_map_source_desc_new(PyGBoxed *self, PyObject *args, PyObject *kw
return 0;
}
%%
+override-attr ChamplainPoint.lat
+static int
+_wrap_champlain_point__set_lat (PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainPoint)->lat = val;
+ return 0;
+}
+%%
+override-attr ChamplainPoint.lon
+static int
+_wrap_champlain_point__set_lon(PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainPoint)->lon = val;
+ return 0;
+}
+%%
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]