diff options
author | David Robillard <d@drobilla.net> | 2011-12-04 05:34:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-04 05:34:24 +0000 |
commit | 314822117b6af5c2468f2a7772092591cd15044b (patch) | |
tree | fb02ec4dcd030cb9f2c780e9f83f6e5f3d6889b3 | |
parent | b06e13296138eddc38fbfc18e53c4f98703f6b65 (diff) | |
download | patchage-314822117b6af5c2468f2a7772092591cd15044b.tar.gz patchage-314822117b6af5c2468f2a7772092591cd15044b.tar.bz2 patchage-314822117b6af5c2468f2a7772092591cd15044b.zip |
Store C items in Canvas.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3792 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/PatchageCanvas.cpp | 4 | ||||
-rw-r--r-- | src/PatchageCanvas.hpp | 2 |
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); |