Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ycollet committed Aug 30, 2017
1 parent fbcd96a commit ef4761d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions azr3/azr3gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ AZR3GUI::AZR3GUI()
connect(mem_fun(*this, &AZR3GUI::splitpoint_changed));
Menu* menu = create_menu();
m_tbox->signal_button_press_event().
connect(bind(mem_fun(*this, &AZR3GUI::popup_menu), menu));
connect(sigc::bind(mem_fun(*this, &AZR3GUI::popup_menu), menu));

// keyboard split switch
m_splitswitch = add_switch(m_fbox, -1, 537, 49, Switch::Mini);
Expand Down Expand Up @@ -141,8 +141,8 @@ AZR3GUI::AZR3GUI()
// mode switcher
Widget* eb = add_clickbox(m_fbox, 14, 319, 14, 44);
eb->signal_button_press_event().
connect(sigc::hide(bind(bind(mem_fun(*this, &AZR3GUI::change_mode),
sigc::ref(m_fbox)), false)));
connect(sigc::hide(sigc::bind(sigc::bind(mem_fun(*this, &AZR3GUI::change_mode),
std::ref(m_fbox)), false)));
m_fx_widgets.push_back(eb);

// Mr Valve controls
Expand Down Expand Up @@ -182,8 +182,8 @@ AZR3GUI::AZR3GUI()
// mode switcher 2
Widget* eb2 = add_clickbox(m_vbox, 14, 53, 14, 44);
eb2->signal_button_press_event().
connect(sigc::hide(bind(bind(mem_fun(*this, &AZR3GUI::change_mode),
sigc::ref(m_fbox)), true)));
connect(sigc::hide(sigc::bind(sigc::bind(mem_fun(*this, &AZR3GUI::change_mode),
std::ref(m_fbox)), true)));

// vibrato controls
add_switch(m_vbox, n_1_vibrato, 39, 17, Switch::Green);
Expand Down Expand Up @@ -352,7 +352,7 @@ Knob* AZR3GUI::add_knob(Fixed& fbox, RefPtr<Pixmap>& pm, size_t port,
knob->set_style(s);
if (port < m_adj.size()) {
knob->get_adjustment().signal_value_changed().
connect(compose(bind<0>(mem_fun(*this, &AZR3GUI::control_changed), port),
connect(compose(sigc::bind<0>(mem_fun(*this, &AZR3GUI::control_changed), port),
mem_fun(knob->get_adjustment(),
&Adjustment::get_value)));
assert(m_adj[port] == 0);
Expand Down Expand Up @@ -382,7 +382,7 @@ Drawbar* AZR3GUI::add_drawbar(Fixed& fbox, RefPtr<Pixmap>& pm, size_t port,
db->set_style(s);
if (port < m_adj.size()) {
db->get_adjustment().signal_value_changed().
connect(compose(bind<0>(mem_fun(*this, &AZR3GUI::control_changed), port),
connect(compose(sigc::bind<0>(mem_fun(*this, &AZR3GUI::control_changed), port),
mem_fun(db->get_adjustment(), &Adjustment::get_value)));
assert(m_adj[port] == 0);
m_adj[port] = &db->get_adjustment();
Expand All @@ -397,7 +397,7 @@ Switch* AZR3GUI::add_switch(Fixed& fbox, size_t port,
fbox.put(*sw, xoffset, yoffset);
if (port >= 0 && port < m_adj.size()) {
sw->get_adjustment().signal_value_changed().
connect(compose(bind<0>(mem_fun(*this, &AZR3GUI::control_changed),port),
connect(compose(sigc::bind<0>(mem_fun(*this, &AZR3GUI::control_changed),port),
mem_fun(sw->get_adjustment(), &Adjustment::get_value)));
assert(m_adj[port] == 0);
m_adj[port] = &sw->get_adjustment();
Expand Down Expand Up @@ -489,7 +489,7 @@ void AZR3GUI::update_program_menu() {
oss<<setw(2)<<setfill('0')<<iter->first<<' '<<iter->second.substr(0, 23);
MenuItem* item = manage(new MenuItem(oss.str()));
item->signal_activate().
connect(bind(mem_fun(*this, &AZR3GUI::program_changed), iter->first));
connect(sigc::bind(mem_fun(*this, &AZR3GUI::program_changed), iter->first));
m_program_menu->items().push_back(*item);
item->show();
item->get_child()->modify_bg(STATE_NORMAL, m_menu_bg);
Expand All @@ -503,7 +503,7 @@ void AZR3GUI::update_split_menu() {
for (int i = 0; i < 128; ++i) {
MenuItem* item = manage(new MenuItem(note2str(i)));
item->signal_activate().
connect(bind(mem_fun(*m_splitpoint_adj, &Adjustment::set_value),
connect(sigc::bind(mem_fun(*m_splitpoint_adj, &Adjustment::set_value),
i / 128.0));
m_split_menu->items().push_back(*item);
item->show();
Expand Down

0 comments on commit ef4761d

Please sign in to comment.