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
This commit is contained in:
Paul Davis 2012-06-02 14:50:09 +00:00
parent 2010c0489f
commit 1cb5aed0ce
2 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -21,6 +21,7 @@
#ifndef MIDNAM_PATCH_H_
#define MIDNAM_PATCH_H_
#include <iostream>
#include <string>
#include <list>
#include <set>
@ -139,8 +140,6 @@ private:
std::string _patch_list_name;
};
#include <iostream>
class ChannelNameSet
{
public: