--- gigedit/trunk/src/gigedit/mainwindow.cpp 2009/02/03 19:38:19 1831 +++ gigedit/trunk/src/gigedit/mainwindow.cpp 2009/07/31 10:15:27 1959 @@ -887,6 +887,8 @@ } // cleanup sf_close(hFile); + // let the sampler re-cache the sample if needed + sample_changed_signal.emit(iter->gig_sample); // on success we remove the sample from the import queue, // otherwise keep it, maybe it works the next time ? std::list::iterator cur = iter; @@ -917,6 +919,11 @@ { #ifdef ABOUT_DIALOG Gtk::AboutDialog dialog; +#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION >= 12) || GTKMM_MAJOR_VERSION > 2 + dialog.set_program_name("Gigedit"); +#else + dialog.set_name("Gigedit"); +#endif dialog.set_version(VERSION); dialog.set_copyright("Copyright (C) 2006-2009 Andreas Persson"); dialog.set_comments(_( @@ -1873,6 +1880,10 @@ return region_changed_signal; } +sigc::signal& MainWindow::signal_sample_changed() { + return sample_changed_signal; +} + sigc::signal& MainWindow::signal_sample_ref_changed() { return sample_ref_changed_signal; }