From e15a1ca67583535193e3e2b13ff006d93a7dcf14 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Jun 2011 10:19:18 +0000 Subject: 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 --- src/gui/Port.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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 -- cgit v1.2.1