diff options
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 183729d960..3dd0da9250 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -317,17 +317,21 @@ main (int argc, char *argv[]) return curvetest (curvetest_file); } - /* desktop standard themes: just say no! */ + + if (!use_gtk_theme) { - if (getenv("GTK_RC_FILES")) { - unsetenv("GTK_RC_FILES"); - } + /* desktop standard themes: just say no! */ - if (getenv("GTK2_RC_FILES")) { - unsetenv("GTK_RC_FILES"); - } + if (getenv("GTK_RC_FILES")) { + unsetenv("GTK_RC_FILES"); + } + + if (getenv("GTK2_RC_FILES")) { + unsetenv("GTK_RC_FILES"); + } - RC::set_default_files (null_file_list); + RC::set_default_files (null_file_list); + } cout << _("Ardour/GTK ") << VERSIONSTRING |