mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
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:
parent
d4dd6fbe63
commit
b307462f4f
1 changed files with 9 additions and 5 deletions
|
|
@ -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,
|
||||
* 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>* error_style = 0;
|
||||
static Glib::RefPtr<Style>* warning_style = 0;
|
||||
|
|
@ -153,10 +155,12 @@ UI::load_rcfile (string path, bool themechange)
|
|||
return -1;
|
||||
}
|
||||
|
||||
vector<string> files;
|
||||
files.push_back(path.c_str());
|
||||
RC::set_default_files(files);
|
||||
RC::reparse_all (Gtk::Settings::get_default(), true);
|
||||
RC rc (path.c_str());
|
||||
gtk_rc_reset_styles (gtk_settings_get_default());
|
||||
//vector<string> files;
|
||||
//files.push_back(path.c_str());
|
||||
//RC::set_default_files(files);
|
||||
//RC::reparse_all (Gtk::Settings::get_default(), true);
|
||||
theme_changed.emit();
|
||||
|
||||
if (themechange) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue