summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchPortModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
committerDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
commit49bd2b972d10cfab035805d7ffae77e056569c66 (patch)
treead97aa85fb76051441addf97d1d9815bc93021d9 /src/gui/PatchPortModule.cpp
parentd42b83ffe581651886ca0874b6b75dcbb6127aea (diff)
downloadingen-49bd2b972d10cfab035805d7ffae77e056569c66.tar.gz
ingen-49bd2b972d10cfab035805d7ffae77e056569c66.tar.bz2
ingen-49bd2b972d10cfab035805d7ffae77e056569c66.zip
Automatically resize modules at update time as necessary.
This avoids the huge multiple resize performance problems of the past without requiring the user to manually resize modules. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3375 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchPortModule.cpp')
-rw-r--r--src/gui/PatchPortModule.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index df4d8dc8..49dc4925 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -68,7 +68,6 @@ PatchPortModule::create(PatchCanvas& canvas,
m != model->properties().end(); ++m)
ret->property_changed(m->first, m->second);
- ret->resize();
return ret;
}
@@ -110,15 +109,13 @@ PatchPortModule::show_human_names(bool b)
set_name(name.get_string());
else
set_name(_model->symbol().c_str());
-
- resize();
}
void
PatchPortModule::set_name(const std::string& n)
{
_port->set_name(n);
- Module::resize();
+ _must_resize = true;
}
void