[libchamplain] Use memphis.h include and add ChamplainBoundingBox sets
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Use memphis.h include and add ChamplainBoundingBox sets
- Date: Sun, 25 Apr 2010 19:58:47 +0000 (UTC)
commit ec5cc08523ce033b60d5ec0eb9ca5d2ace7c4258
Author: Victor Godoy Poluceno <victorpoluceno gmail com>
Date: Mon Apr 5 23:49:54 2010 -0300
Use memphis.h include and add ChamplainBoundingBox sets
bindings/python/champlain/pychamplain.override | 61 ++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/champlain/pychamplain.override b/bindings/python/champlain/pychamplain.override
index d9d8242..d07be4d 100644
--- a/bindings/python/champlain/pychamplain.override
+++ b/bindings/python/champlain/pychamplain.override
@@ -4,6 +4,7 @@ headers
#include <pygobject.h>
#include <champlain/champlain.h>
#include <clutter/clutter.h>
+#include <memphis/memphis.h>
#include "pychamplain.h"
%%
@@ -492,6 +493,66 @@ _wrap_champlain_point__set_lon(PyGBoxed *self, PyObject *value,
return 0;
}
%%
+override-attr ChamplainBoundingBox.left
+static int
+_wrap_champlain_bounding_box__set_left (PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainBoundingBox)->left = val;
+ return 0;
+}
+%%
+override-attr ChamplainBoundingBox.right
+static int
+_wrap_champlain_bounding_box__set_right (PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainBoundingBox)->right = val;
+ return 0;
+}
+%%
+override-attr ChamplainBoundingBox.top
+static int
+_wrap_champlain_bounding_box__set_top (PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainBoundingBox)->top = val;
+ return 0;
+}
+%%
+override-attr ChamplainBoundingBox.bottom
+static int
+_wrap_champlain_bounding_box__set_bottom (PyGBoxed *self, PyObject *value,
+ void *closure)
+{
+ gdouble val;
+
+ val = PyFloat_AsDouble(value);
+ if (PyErr_Occurred())
+ return -1;
+
+ pyg_boxed_get(self, ChamplainBoundingBox)->bottom = val;
+ return 0;
+}
+%%
override champlain_selection_layer_get_selected_markers kwargs
static PyObject *
_wrap_champlain_selection_layer_get_selected_markers(PyGObject *self) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]