summaryrefslogtreecommitdiff
path: root/gtk2_ardour/theme_manager.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-06-27 12:12:31 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-06-27 12:12:31 +0000
commite7a1e2c18e6a277531ba98e2d662380c45d1aad4 (patch)
treeec973cc795a9b00860eb2bd75ef4d54986f5d86e /gtk2_ardour/theme_manager.cc
parent40350c8052fe17e21d864d3fd6ed7f4b2556076b (diff)
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
Diffstat (limited to 'gtk2_ardour/theme_manager.cc')
-rw-r--r--gtk2_ardour/theme_manager.cc12
1 files changed, 10 insertions, 2 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 <gtkmm2ext/gtk_ui.h>
#include <gtkmm/settings.h>
+#include <pbd/file_utils.h>
+
#include <ardour/configuration.h>
+#include <ardour/filesystem_paths.h>
#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;
}
+
+ 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(find_config_file(Config->get_ui_rc_file())); //EMIT SIGNAL
+ ThemeChanged(rc_file_path.to_string()); //EMIT SIGNAL
- cerr << "load_rc() called " << find_config_file(Config->get_ui_rc_file()) << endl;
+ cerr << "load_rc() called " << rc_file_path.to_string() << endl;
}