summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-09-20 17:05:24 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-09-20 17:05:24 +0000
commit48b4ee48e518d65c3c5e49369a747c2aa4b0081b (patch)
tree7159f8bc67d3f96ae43c42c32cacec6f7813f6fa /src/knotholder.cpp
parentFix bug in rectangle toolbar. (diff)
parentFix grids after C++ification. Patch from Markus Engel (diff)
downloadinkscape-48b4ee48e518d65c3c5e49369a747c2aa4b0081b.tar.gz
inkscape-48b4ee48e518d65c3c5e49369a747c2aa4b0081b.zip
Merge from trunk.
(bzr r12475.1.29)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index a1ee3082b..32ba9075b 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -63,13 +63,16 @@ KnotHolder::KnotHolder(SPDesktop *desktop, SPItem *item, SPKnotHolderReleasedFun
g_print ("Error! Throw an exception, please!\n");
}
- g_object_ref(G_OBJECT(item)); // TODO: is this still needed after C++-ification?
+ //g_object_ref(G_OBJECT(item)); // TODO: is this still needed after C++-ification?
+ sp_object_ref(item);
sizeUpdatedConn = ControlManager::getManager().connectCtrlSizeChanged(sigc::mem_fun(*this, &KnotHolder::updateControlSizes));
}
KnotHolder::~KnotHolder() {
- g_object_unref(G_OBJECT(item));
+ //g_object_unref(G_OBJECT(item));
+ sp_object_unref(item);
+
for (std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i)
{
delete (*i);
@@ -128,7 +131,7 @@ KnotHolder::knot_clicked_handler(SPKnot *knot, guint state)
}
if (SP_IS_SHAPE(saved_item)) {
- SP_SHAPE(saved_item)->setShape();
+ SP_SHAPE(saved_item)->set_shape();
}
knot_holder->update_knots();
@@ -177,7 +180,7 @@ KnotHolder::knot_moved_handler(SPKnot *knot, Geom::Point const &p, guint state)
}
if (SP_IS_SHAPE (item)) {
- SP_SHAPE (item)->setShape();
+ SP_SHAPE (item)->set_shape();
}
this->update_knots();