From 8f5f234b6a81f96fa156257531c20b1b5bd17cfe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2012 03:43:53 +0000 Subject: Don't send selection information to the server. This also happens to fix some truly bizarre problems with pasting. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4368 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 9 --------- src/gui/PatchCanvas.cpp | 4 ---- src/gui/PatchPortModule.cpp | 9 --------- src/shared/URIs.cpp | 1 - 4 files changed, 23 deletions(-) (limited to 'src') diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 03a56df1..ad3f23bb 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -396,10 +396,6 @@ NodeModule::property_changed(const URI& key, const Atom& value) } else if (value.type() == uris.forge.Bool) { if (key == uris.ingen_polyphonic) { set_stacked(value.get_bool()); - } else if (key == uris.ingen_selected) { - if (value.get_bool() != get_selected()) { - set_selected(value.get_bool()); - } } else if (key == uris.ingen_uiEmbedded) { if (value.get_bool() && !_gui_widget) { embed_gui(true); @@ -436,11 +432,6 @@ NodeModule::set_selected(gboolean b) } } } - if (app().signal()) { - app().interface()->set_property(_node->path(), - uris.ingen_selected, - app().forge().make(b)); - } } } diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 640051cb..587928a6 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -757,10 +757,6 @@ PatchCanvas::paste() y->second = _app.forge().make( y->second.get_float() + (20.0f * _paste_count)); - if (i->first.parent().is_root()) - i->second->set_property(uris.ingen_selected, - _app.forge().make(true)); - builder.build(i->second); } diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp index 5ea90f55..e716a12d 100644 --- a/src/gui/PatchPortModule.cpp +++ b/src/gui/PatchPortModule.cpp @@ -152,10 +152,6 @@ PatchPortModule::property_changed(const URI& key, const Atom& value) } else if (value.type() == uris.forge.Bool) { if (key == uris.ingen_polyphonic) { set_stacked(value.get_bool()); - } else if (key == uris.ingen_selected) { - if (value.get_bool() != get_selected()) { - set_selected(value.get_bool()); - } } } } @@ -165,11 +161,6 @@ PatchPortModule::set_selected(gboolean b) { if (b != get_selected()) { Module::set_selected(b); - if (app().signal()) - app().interface()->set_property( - _model->path(), - app().uris().ingen_selected, - app().forge().make(b)); } } diff --git a/src/shared/URIs.cpp b/src/shared/URIs.cpp index abb0a011..1bc64c27 100644 --- a/src/shared/URIs.cpp +++ b/src/shared/URIs.cpp @@ -83,7 +83,6 @@ URIs::URIs(Shared::Forge& f, URIMap* map) , ingen_polyphony (forge, map, NS_INGEN "polyphony") , ingen_prototype (forge, map, NS_INGEN "prototype") , ingen_sampleRate (forge, map, NS_INGEN "sampleRate") - , ingen_selected (forge, map, NS_INGEN "selected") , ingen_tail (forge, map, NS_INGEN "tail") , ingen_uiEmbedded (forge, map, NS_INGEN "uiEmbedded") , ingen_value (forge, map, NS_INGEN "value") -- cgit v1.2.1