summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/PatchageCanvas.cpp4
-rw-r--r--src/PatchageCanvas.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index acba522..36b207d 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -332,14 +332,14 @@ PatchageCanvas::make_connection(FlowCanvas::Node* tail,
}
bool
-PatchageCanvas::remove_item(FlowCanvas::Node* i)
+PatchageCanvas::remove_item(FlowCanvasNode* i)
{
// Remove item from canvas
const bool ret = FlowCanvas::Canvas::remove_item(i);
if (!ret)
return ret;
- PatchageModule* const module = dynamic_cast<PatchageModule*>(i);
+ PatchageModule* const module = dynamic_cast<PatchageModule*>(Glib::wrap(i));
if (!module)
return ret;
diff --git a/src/PatchageCanvas.hpp b/src/PatchageCanvas.hpp
index 0fd394e..af46615 100644
--- a/src/PatchageCanvas.hpp
+++ b/src/PatchageCanvas.hpp
@@ -74,7 +74,7 @@ public:
private:
Patchage* _app;
- bool remove_item(FlowCanvas::Node* i);
+ bool remove_item(FlowCanvasNode* i);
bool on_event(GdkEvent* ev);
bool on_connection_event(FlowCanvas::Edge* c, GdkEvent* ev);