From 23d329a6ffef4c63267a4371e062245e95bc1024 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 8 Sep 2005 20:59:47 +0000 Subject: [PATCH] changed color method to be property --- python/mapnik_stroke.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/mapnik_stroke.cpp b/python/mapnik_stroke.cpp index ab468edc0..2bfea9efe 100644 --- a/python/mapnik_stroke.cpp +++ b/python/mapnik_stroke.cpp @@ -41,8 +41,9 @@ void export_stroke () class_("stroke",init<>()) .def(init()) - .def("color",&stroke::get_color,return_value_policy()) - .def("color",&stroke::set_color) + .add_property("color",make_function + (&stroke::get_color,return_value_policy()), + &stroke::set_color) .add_property("width",&stroke::get_width,&stroke::set_width) .add_property("opacity",&stroke::get_opacity,&stroke::set_opacity) .add_property("line_cap",&stroke::get_line_cap,&stroke::set_line_cap)