From 1cb5aed0ce24605d16684e3d49167c81b8c83587 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 2 Jun 2012 14:50:09 +0000 Subject: [PATCH] couple of fixes to enable building, and building with gtkmm 2.2(<4) git-svn-id: svn://localhost/ardour2/branches/3.0@12540 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/patch_change_dialog.cc | 4 ++-- libs/midi++2/midi++/midnam_patch.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/patch_change_dialog.cc b/gtk2_ardour/patch_change_dialog.cc index a9ad5c7839..354cbfbf6a 100644 --- a/gtk2_ardour/patch_change_dialog.cc +++ b/gtk2_ardour/patch_change_dialog.cc @@ -151,7 +151,7 @@ PatchChangeDialog::fill_bank_combo () for (MIDI::Name::ChannelNameSet::PatchBanks::const_iterator i = banks->begin(); i != banks->end(); ++i) { string n = (*i)->name (); boost::replace_all (n, "_", " "); - _bank_combo.append (n); + _bank_combo.append_text (n); } } @@ -235,7 +235,7 @@ PatchChangeDialog::fill_patch_combo () for (MIDI::Name::PatchBank::PatchNameList::const_iterator j = patches.begin(); j != patches.end(); ++j) { string n = (*j)->name (); boost::replace_all (n, "_", " "); - _patch_combo.append (n); + _patch_combo.append_text (n); } } diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h index 505245ae84..01b8837f2d 100644 --- a/libs/midi++2/midi++/midnam_patch.h +++ b/libs/midi++2/midi++/midnam_patch.h @@ -21,6 +21,7 @@ #ifndef MIDNAM_PATCH_H_ #define MIDNAM_PATCH_H_ +#include #include #include #include @@ -139,8 +140,6 @@ private: std::string _patch_list_name; }; -#include - class ChannelNameSet { public: