summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-01-28 05:54:41 +0000
committerDavid Robillard <d@drobilla.net>2010-01-28 05:54:41 +0000
commit44083fa4278021d77480238a50d1100b1e8ba4cc (patch)
treeb1d879009260b25695424b835c728fcff9135393 /src/gui
parentf961c42b2b9003989435589125dfb6aaa333843c (diff)
downloadingen-44083fa4278021d77480238a50d1100b1e8ba4cc.tar.gz
ingen-44083fa4278021d77480238a50d1100b1e8ba4cc.tar.bz2
ingen-44083fa4278021d77480238a50d1100b1e8ba4cc.zip
Trim cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2387 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Controls.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/Controls.cpp b/src/gui/Controls.cpp
index e810585d..6e2fd6be 100644
--- a/src/gui/Controls.cpp
+++ b/src/gui/Controls.cpp
@@ -49,7 +49,7 @@ Control::Control(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>&
menu_xml->get_widget("port_control_menu_properties", _menu_properties);
_menu_properties->signal_activate().connect(
- sigc::mem_fun(this, &SliderControl::menu_properties));
+ sigc::mem_fun(this, &Control::menu_properties));
}
@@ -150,7 +150,6 @@ SliderControl::init(ControlPanel* panel, SharedPtr<PortModel> pm)
pm->signal_property.connect(sigc::mem_fun(this, &SliderControl::port_property_change));
_slider->set_range(std::min(min, pm->value().get_float()), std::max(max, pm->value().get_float()));
- //_value_spinner->set_range(min, max);
set_value(pm->value());
@@ -220,7 +219,6 @@ SliderControl::set_range(float min, float max)
max = min + 1.0;
_slider->set_range(min, max);
- //_value_spinner->set_range(min, max);
}
@@ -228,8 +226,6 @@ void
SliderControl::enable()
{
_slider->property_sensitive() = true;
- //_min_spinner->property_sensitive() = true;
- //_max_spinner->property_sensitive() = true;
_value_spinner->property_sensitive() = true;
_name_label->property_sensitive() = true;
}
@@ -239,8 +235,6 @@ void
SliderControl::disable()
{
_slider->property_sensitive() = false;
- //_min_spinner->property_sensitive() = false;
- //_max_spinner->property_sensitive() = false;
_value_spinner->property_sensitive() = false;
_name_label->property_sensitive() = false;
}
@@ -380,7 +374,6 @@ ToggleControl::toggled()
if (_enable_signal) {
float value = _checkbutton->get_active() ? 1.0f : 0.0f;
_control_panel->value_changed(_port_model, value);
- //m_port_model->value(value);
}
}