summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-11-30 23:01:30 +0000
committerDavid Robillard <d@drobilla.net>2010-11-30 23:01:30 +0000
commit27c3aec25ca4eefa88df64b63d50ed4451bec190 (patch)
tree9ec17eeb9ad9080cca2f3a350afe31d696c68638 /src/gui
parentd2f94aa4fd3472ff86fea5abe7a58d15a90d3264 (diff)
downloadingen-27c3aec25ca4eefa88df64b63d50ed4451bec190.tar.gz
ingen-27c3aec25ca4eefa88df64b63d50ed4451bec190.tar.bz2
ingen-27c3aec25ca4eefa88df64b63d50ed4451bec190.zip
Consistent naming for URI quarks.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2678 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/App.cpp4
-rw-r--r--src/gui/Configuration.cpp2
-rw-r--r--src/gui/ControlPanel.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 292cf29f..9c9864cb 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -393,8 +393,8 @@ App::can_control(const Shared::Port* port) const
{
return port->is_a(PortType::CONTROL)
|| (port->is_a(PortType::VALUE)
- && (port->supports(uris().object_class_float32)
- || port->supports(uris().object_class_string)));
+ && (port->supports(uris().atom_Float32)
+ || port->supports(uris().atom_String)));
}
diff --git a/src/gui/Configuration.cpp b/src/gui/Configuration.cpp
index 6a6c2914..de4ed424 100644
--- a/src/gui/Configuration.cpp
+++ b/src/gui/Configuration.cpp
@@ -92,7 +92,7 @@ Configuration::get_port_color(const PortModel* p)
const Shared::LV2URIMap& uris = App::instance().uris();
if (p->is_a(Shared::PortType::AUDIO)) {
return _audio_port_color;
- } else if (p->supports(uris.object_class_string)) {
+ } else if (p->supports(uris.atom_String)) {
return _string_port_color;
} else if (App::instance().can_control(p)) {
return _control_port_color;
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp
index 76136719..9434ba0e 100644
--- a/src/gui/ControlPanel.cpp
+++ b/src/gui/ControlPanel.cpp
@@ -97,13 +97,13 @@ ControlPanel::add_port(SharedPtr<PortModel> pm)
xml->get_widget_derived("toggle_control", tc);
control = tc;
} else if (pm->is_a(Shared::PortType::CONTROL)
- || pm->supports(App::instance().uris().object_class_float32)) {
+ || pm->supports(App::instance().uris().atom_Float32)) {
SliderControl* sc;
Glib::RefPtr<Gnome::Glade::Xml> xml
= GladeFactory::new_glade_reference("control_strip");
xml->get_widget_derived("control_strip", sc);
control = sc;
- } else if (pm->supports(App::instance().uris().object_class_string)) {
+ } else if (pm->supports(App::instance().uris().atom_String)) {
StringControl* sc;
Glib::RefPtr<Gnome::Glade::Xml> xml
= GladeFactory::new_glade_reference("string_control");