summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/tools/test_shell/test_shell_platform_delegate_gtk.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell_platform_delegate_gtk.cc b/webkit/tools/test_shell/test_shell_platform_delegate_gtk.cc
index 8846f19..52b1d49 100644
--- a/webkit/tools/test_shell/test_shell_platform_delegate_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_platform_delegate_gtk.cc
@@ -14,6 +14,11 @@ void TestShellPlatformDelegate::PreflightArgs(int *argc, char ***argv) {
}
void TestShellPlatformDelegate::SelectUnifiedTheme() {
+ // Stop custom gtkrc files from messing with the theme.
+ gchar* default_gtkrc_files[] = { NULL };
+ gtk_rc_set_default_files(default_gtkrc_files);
+ gtk_rc_reparse_all_for_settings(gtk_settings_get_default(), TRUE);
+
// Pick a theme that uses Cairo for drawing, since we:
// 1) currently don't support GTK themes that use the GDK drawing APIs, and
// 2) need to use a unified theme for layout tests anyway.