From e7a1e2c18e6a277531ba98e2d662380c45d1aad4 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 27 Jun 2007 12:12:31 +0000 Subject: [PATCH] Use PBD::find_file_in_search_path in ThemeManager to find the rc file. git-svn-id: svn://localhost/ardour2/trunk@2056 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/theme_manager.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc index 261ebdb9b8..8744d887da 100644 --- a/gtk2_ardour/theme_manager.cc +++ b/gtk2_ardour/theme_manager.cc @@ -26,7 +26,10 @@ #include #include +#include + #include +#include #include "theme_manager.h" #include "rgb_macros.h" @@ -184,10 +187,15 @@ ThemeManager::load_rc(int which) Config->set_ui_rc_file("ardour2_ui_light.rc"); cerr << "light theme selected" << endl; } - - ThemeChanged(find_config_file(Config->get_ui_rc_file())); //EMIT SIGNAL - cerr << "load_rc() called " << find_config_file(Config->get_ui_rc_file()) << endl; + sys::path rc_file_path; + + find_file_in_search_path (ardour_search_path() + system_config_search_path(), + Config->get_ui_rc_file(), rc_file_path); + + ThemeChanged(rc_file_path.to_string()); //EMIT SIGNAL + + cerr << "load_rc() called " << rc_file_path.to_string() << endl; }