diff options
author | Carl Hetherington <carl@carlh.net> | 2011-04-06 23:26:44 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-04-06 23:26:44 +0000 |
commit | 574ef8d61b34968bac6de9cf240eff9c95881417 (patch) | |
tree | ad9cbc17bbf981b1b049036d30ffb3ff3078ef29 /gtk2_ardour/plugin_eq_gui.cc | |
parent | 58bd627666d08587148252448bace2fff1fcad52 (diff) |
Hopefully allow compilation against gtkmm 2.24.0 (#3946 and #3934).
git-svn-id: svn://localhost/ardour2/branches/3.0@9319 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_eq_gui.cc')
-rw-r--r-- | gtk2_ardour/plugin_eq_gui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_eq_gui.cc b/gtk2_ardour/plugin_eq_gui.cc index a5bfb38f17..5c90f5a887 100644 --- a/gtk2_ardour/plugin_eq_gui.cc +++ b/gtk2_ardour/plugin_eq_gui.cc @@ -73,7 +73,10 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert) // dB selection dBScaleModel = Gtk::ListStore::create(dBColumns); - dBScaleCombo = new Gtk::ComboBox(dBScaleModel); + /* 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->set_title (_("dB scale")); #define ADD_DB_ROW(MIN,MAX,STEP,NAME) \ |