summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchPortModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-10 01:45:19 +0000
committerDavid Robillard <d@drobilla.net>2011-06-10 01:45:19 +0000
commit15611d1f9d7a6aba34b70ccaf63f564d565b55f3 (patch)
tree28b1e5ecb67fb5807d607a2e38e691884c121c56 /src/gui/PatchPortModule.hpp
parent49bd2b972d10cfab035805d7ffae77e056569c66 (diff)
downloadingen-15611d1f9d7a6aba34b70ccaf63f564d565b55f3.tar.gz
ingen-15611d1f9d7a6aba34b70ccaf63f564d565b55f3.tar.bz2
ingen-15611d1f9d7a6aba34b70ccaf63f564d565b55f3.zip
Avoid resizing entirely when adding a port and new size/etc is simple to compute.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3382 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchPortModule.hpp')
-rw-r--r--src/gui/PatchPortModule.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/PatchPortModule.hpp b/src/gui/PatchPortModule.hpp
index 9334c48f..42607315 100644
--- a/src/gui/PatchPortModule.hpp
+++ b/src/gui/PatchPortModule.hpp
@@ -49,7 +49,7 @@ class PortMenu;
class PatchPortModule : public FlowCanvas::Module
{
public:
- static boost::shared_ptr<PatchPortModule> create(
+ static PatchPortModule* create(
PatchCanvas& canvas,
SharedPtr<const PortModel> model,
bool human);
@@ -68,12 +68,12 @@ protected:
void create_menu();
void set_selected(bool b);
- void set_port(SharedPtr<Port> port) { _port = port; }
+ void set_port(Port* port) { _port = port; }
void property_changed(const Raul::URI& predicate, const Raul::Atom& value);
SharedPtr<const PortModel> _model;
- SharedPtr<Port> _port;
+ Port* _port;
PortMenu* _menu;
};