diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-17 13:12:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-17 13:12:05 +0200 |
commit | 026f8dd80f0654b725ac78158d9adeda8b29ac1b (patch) | |
tree | c61d1cd3c2f5912f89deb42c1a96e232e71b3572 /gtk2_ardour/splash.cc | |
parent | b7965a660d2278630feee4b075cca810a0784617 (diff) |
group Product/App specific resources
* only install icons relevant to product
* use program-name (as-is) as prefix
* keep icons/* for all products
Diffstat (limited to 'gtk2_ardour/splash.cc')
-rw-r--r-- | gtk2_ardour/splash.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc index d122449ff8..407bdec2d2 100644 --- a/gtk2_ardour/splash.cc +++ b/gtk2_ardour/splash.cc @@ -50,7 +50,10 @@ Splash::Splash () std::string splash_file; - if (!find_file (ardour_data_search_path(), "splash.png", splash_file)) { + Searchpath rc (ARDOUR::ardour_data_search_path()); + rc.add_subdirectory_to_paths ("resources"); + + if (!find_file (rc, PROGRAM_NAME "-splash.png", splash_file)) { cerr << "Cannot find splash screen image file\n"; throw failed_constructor(); } |