diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-03-29 23:56:13 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-03-29 23:56:13 +0000 |
| commit | 7df6616da5ea2debb86838366ddf746841549cdb (patch) | |
| tree | 4557bc8c1950fe5c0f9e6063bd261f4a5c6ec5da /src/sp-polygon.cpp | |
| parent | merged from trunk (diff) | |
| download | inkscape-7df6616da5ea2debb86838366ddf746841549cdb.tar.gz inkscape-7df6616da5ea2debb86838366ddf746841549cdb.zip | |
Renamed virtual function names.
(bzr r11608.1.57)
Diffstat (limited to 'src/sp-polygon.cpp')
| -rw-r--r-- | src/sp-polygon.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sp-polygon.cpp b/src/sp-polygon.cpp index 5a21956e7..b694c1755 100644 --- a/src/sp-polygon.cpp +++ b/src/sp-polygon.cpp @@ -49,10 +49,10 @@ static void sp_polygon_init(SPPolygon *polygon) polygon->cobject = polygon->cpolygon; } -void CPolygon::onBuild(SPDocument *document, Inkscape::XML::Node *repr) { +void CPolygon::build(SPDocument *document, Inkscape::XML::Node *repr) { SPPolygon* object = this->sppolygon; - CShape::onBuild(document, repr); + CShape::build(document, repr); object->readAttr( "points" ); } @@ -82,7 +82,7 @@ static gchar *sp_svg_write_polygon(Geom::PathVector const & pathv) return g_strdup(os.str().c_str()); } -Inkscape::XML::Node* CPolygon::onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { +Inkscape::XML::Node* CPolygon::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { SPShape *shape = this->sppolygon; // Tolerable workaround: we need to update the object's curve before we set points= @@ -98,7 +98,7 @@ Inkscape::XML::Node* CPolygon::onWrite(Inkscape::XML::Document *xml_doc, Inkscap repr->setAttribute("points", str); g_free(str); - CShape::onWrite(xml_doc, repr, flags); + CShape::write(xml_doc, repr, flags); return repr; } @@ -124,7 +124,7 @@ static gboolean polygon_get_value(gchar const **p, gdouble *v) return true; } -void CPolygon::onSet(unsigned int key, const gchar* value) { +void CPolygon::set(unsigned int key, const gchar* value) { SPPolygon *polygon = this->sppolygon; switch (key) { @@ -181,12 +181,12 @@ void CPolygon::onSet(unsigned int key, const gchar* value) { break; } default: - CShape::onSet(key, value); + CShape::set(key, value); break; } } -gchar* CPolygon::onDescription() { +gchar* CPolygon::description() { return g_strdup(_("<b>Polygon</b>")); } |
