13
0

Disable theme changing untill we figure out whats broken

git-svn-id: svn://localhost/ardour2/branches/3.0@8840 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2011-02-14 04:44:52 +00:00
parent d4dd6fbe63
commit b307462f4f

View File

@ -135,7 +135,9 @@ UI::load_rcfile (string path, bool themechange)
* This does not occur if wiget.get_style is used instead of rc.get_style below, * This does not occur if wiget.get_style is used instead of rc.get_style below,
* except that doesn't actually work... * except that doesn't actually work...
*/ */
if (themechange) {
return 0; //Disable theme change completely till we figure this out...
}
static Glib::RefPtr<Style>* fatal_style = 0; static Glib::RefPtr<Style>* fatal_style = 0;
static Glib::RefPtr<Style>* error_style = 0; static Glib::RefPtr<Style>* error_style = 0;
static Glib::RefPtr<Style>* warning_style = 0; static Glib::RefPtr<Style>* warning_style = 0;
@ -153,10 +155,12 @@ UI::load_rcfile (string path, bool themechange)
return -1; return -1;
} }
vector<string> files; RC rc (path.c_str());
files.push_back(path.c_str()); gtk_rc_reset_styles (gtk_settings_get_default());
RC::set_default_files(files); //vector<string> files;
RC::reparse_all (Gtk::Settings::get_default(), true); //files.push_back(path.c_str());
//RC::set_default_files(files);
//RC::reparse_all (Gtk::Settings::get_default(), true);
theme_changed.emit(); theme_changed.emit();
if (themechange) { if (themechange) {