Gtk::Widget& SoundShaderPreview::createControlPanel() { Gtk::VBox* vbox = Gtk::manage(new Gtk::VBox(false, 6)); vbox->set_size_request(200, -1); // Create the playback button _playButton = Gtk::manage(new Gtk::Button(Gtk::Stock::MEDIA_PLAY)); _stopButton = Gtk::manage(new Gtk::Button(Gtk::Stock::MEDIA_STOP)); _playButton->signal_clicked().connect(sigc::mem_fun(*this, &SoundShaderPreview::onPlay)); _stopButton->signal_clicked().connect(sigc::mem_fun(*this, &SoundShaderPreview::onStop)); Gtk::HBox* btnHBox = Gtk::manage(new Gtk::HBox(true, 6)); btnHBox->pack_start(*_playButton, true, true); btnHBox->pack_start(*_stopButton, true, true); vbox->pack_end(*btnHBox, false, false); _statusLabel = Gtk::manage(new gtkutil::LeftAlignedLabel("")); vbox->pack_end(*_statusLabel, false, false); return *vbox; }