>From 4ac7740f89078dfa263362928ba01b5e5f831823 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Wed, 17 Aug 2011 12:23:11 +0200 Subject: [PATCH 2/4] pydia: handle new property PROP_TYPE_CONNPOINT --- plug-ins/python/pydia-property.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/plug-ins/python/pydia-property.c b/plug-ins/python/pydia-property.c index 04efbe4..67de778 100644 --- a/plug-ins/python/pydia-property.c +++ b/plug-ins/python/pydia-property.c @@ -30,6 +30,7 @@ #include "pydia-font.h" #include "pydia-color.h" #include "pydia-text.h" +#include "pydia-cpoint.h" #include /* PyMemberDef */ @@ -42,6 +43,7 @@ #include "prop_dict.h" #include "prop_matrix.h" #include "prop_pixbuf.h" +#include "prop_connpoint.h" /* * New @@ -205,6 +207,8 @@ static int PyDia_set_Dict (Property *prop, PyObject *val); static PyObject * PyDia_get_Pixbuf (PixbufProperty *prop); static int PyDia_set_Pixbuf (Property *prop, PyObject *val); +static PyObject * PyDia_get_Connectionpoint (ConnpointProperty *prop); + static int PyDia_set_Bool (Property *prop, PyObject *val) { @@ -585,7 +589,8 @@ struct { { PROP_TYPE_SARRAY, PyDia_get_Array, PyDia_set_Array }, { PROP_TYPE_DARRAY, PyDia_get_Array, PyDia_set_Array }, { PROP_TYPE_DICT, PyDia_get_Dict, PyDia_set_Dict }, - { PROP_TYPE_PIXBUF, PyDia_get_Pixbuf, PyDia_set_Pixbuf } + { PROP_TYPE_PIXBUF, PyDia_get_Pixbuf, PyDia_set_Pixbuf }, + { PROP_TYPE_CONNPOINT, PyDia_get_Connectionpoint } }; static void @@ -797,6 +802,13 @@ PyDia_set_Pixbuf (Property *prop, PyObject *val) return -1; } +static PyObject * +PyDia_get_Connectionpoint (ConnpointProperty *prop) +{ + return PyDiaConnectionPoint_New (prop->connpoint_data); +} + + /* * GetAttr */ -- 1.7.5.4