887 |
} |
} |
888 |
// cleanup |
// cleanup |
889 |
sf_close(hFile); |
sf_close(hFile); |
890 |
|
// let the sampler re-cache the sample if needed |
891 |
|
sample_changed_signal.emit(iter->gig_sample); |
892 |
// on success we remove the sample from the import queue, |
// on success we remove the sample from the import queue, |
893 |
// otherwise keep it, maybe it works the next time ? |
// otherwise keep it, maybe it works the next time ? |
894 |
std::list<SampleImportItem>::iterator cur = iter; |
std::list<SampleImportItem>::iterator cur = iter; |
919 |
{ |
{ |
920 |
#ifdef ABOUT_DIALOG |
#ifdef ABOUT_DIALOG |
921 |
Gtk::AboutDialog dialog; |
Gtk::AboutDialog dialog; |
922 |
|
#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION >= 12) || GTKMM_MAJOR_VERSION > 2 |
923 |
|
dialog.set_program_name("Gigedit"); |
924 |
|
#else |
925 |
|
dialog.set_name("Gigedit"); |
926 |
|
#endif |
927 |
dialog.set_version(VERSION); |
dialog.set_version(VERSION); |
928 |
dialog.set_copyright("Copyright (C) 2006-2009 Andreas Persson"); |
dialog.set_copyright("Copyright (C) 2006-2009 Andreas Persson"); |
929 |
dialog.set_comments(_( |
dialog.set_comments(_( |
1880 |
return region_changed_signal; |
return region_changed_signal; |
1881 |
} |
} |
1882 |
|
|
1883 |
|
sigc::signal<void, gig::Sample*>& MainWindow::signal_sample_changed() { |
1884 |
|
return sample_changed_signal; |
1885 |
|
} |
1886 |
|
|
1887 |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& MainWindow::signal_sample_ref_changed() { |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& MainWindow::signal_sample_ref_changed() { |
1888 |
return sample_ref_changed_signal; |
return sample_ref_changed_signal; |
1889 |
} |
} |