From 314822117b6af5c2468f2a7772092591cd15044b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Dec 2011 05:34:24 +0000 Subject: Store C items in Canvas. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3792 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageCanvas.cpp | 4 ++-- src/PatchageCanvas.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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(i); + PatchageModule* const module = dynamic_cast(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); -- cgit v1.2.1