diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-12 13:34:00 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-12 13:34:00 -0400 |
commit | d369894dd545e2a97e74d5282bb45bbc1028f7f2 (patch) | |
tree | a87621c922e7f5eb15aed02f25794d59435fe0fe | |
parent | 79113144ef2ac33007f29dcea9297114998f92d3 (diff) |
no need for ugly cast constructors, just add a second argument
-rw-r--r-- | gtk2_ardour/plugin_eq_gui.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/plugin_eq_gui.cc b/gtk2_ardour/plugin_eq_gui.cc index 3115f54c41..1fa5d2d598 100644 --- a/gtk2_ardour/plugin_eq_gui.cc +++ b/gtk2_ardour/plugin_eq_gui.cc @@ -79,10 +79,7 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert) // dB selection dBScaleModel = Gtk::ListStore::create(dBColumns); - /* this grotty-looking cast allows compilation against gtkmm 2.24.0, which - added a new ComboBox constructor. - */ - dBScaleCombo = new Gtk::ComboBox ((Glib::RefPtr<Gtk::TreeModel> &) dBScaleModel); + dBScaleCombo = new Gtk::ComboBox (dBScaleModel, false); dBScaleCombo->set_title (_("dB scale")); #define ADD_DB_ROW(MIN,MAX,STEP,NAME) \ |