refactor(modules): prefer sigc::mem_fun

This commit is contained in:
Alexis
2018-08-11 02:40:13 +02:00
parent 14053d61fc
commit 04183dc696
8 changed files with 9 additions and 21 deletions

View File

@ -80,7 +80,7 @@ void waybar::modules::Pulseaudio::_sinkInfoCb(pa_context *context,
pa->_volume = volume * 100.0f;
pa->_muted = i->mute;
pa->_desc = i->description;
pa->update();
Glib::signal_idle().connect_once(sigc::mem_fun(*pa, &Pulseaudio::update));
}
}