summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-03 10:19:18 +0000
committerDavid Robillard <d@drobilla.net>2011-06-03 10:19:18 +0000
commite15a1ca67583535193e3e2b13ff006d93a7dcf14 (patch)
treee4b0adf6b12784a8a95c83ea5a8d318058dafd09 /src/gui
parent901a81045b853834d056464fe7acf1fadb357e07 (diff)
downloadingen-e15a1ca67583535193e3e2b13ff006d93a7dcf14.tar.gz
ingen-e15a1ca67583535193e3e2b13ff006d93a7dcf14.tar.bz2
ingen-e15a1ca67583535193e3e2b13ff006d93a7dcf14.zip
Avoid the awful Gnome::Canvas::Text entirely, saving a ton of memory.
Instead, render the text to a Gnome::Canvas::Pixbuf, and simply render that, which consumes far less memory. Also, trim memory overhead per Node/Port/Connection considerably (mostly by using canvas object properties rather than redundant fields in classes, which are now removed). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3350 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Port.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 330e051a..27d550fc 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -80,7 +80,7 @@ Port::Port(boost::shared_ptr<FlowCanvas::Module> module,
_menu = NULL;
ArtVpathDash* dash = this->dash();
- _rect->property_dash() = dash;
+ _rect.property_dash() = dash;
set_border_width(dash ? 2.0 : 0.0);
pm->signal_moved().connect(sigc::mem_fun(this, &Port::moved));
@@ -208,7 +208,7 @@ Port::property_changed(const URI& key, const Atom& value)
set_toggled(true);
} else if (key == uris.ctx_context) {
ArtVpathDash* dash = this->dash();
- _rect->property_dash() = dash;
+ _rect.property_dash() = dash;
set_border_width(dash ? 2.0 : 0.0);
} else if (key == uris.lv2_name) {
if (value.type() == Atom::STRING