Chromium Code Reviews| Index: webkit/tools/test_shell/test_shell_main.cc |
| =================================================================== |
| --- webkit/tools/test_shell/test_shell_main.cc (revision 8599) |
| +++ webkit/tools/test_shell/test_shell_main.cc (working copy) |
| @@ -232,6 +232,11 @@ |
| #if defined(OS_WIN) |
| gfx::NativeTheme::instance()->DisableTheming(); |
| #elif defined(OS_LINUX) |
| + // Stop custom gtkrc files from messing with the theme. |
| + gchar *default_gtkrc_files[] = { NULL }; |
|
Evan Martin
2009/01/24 01:39:20
star on the left (gchar* default...)
|
| + 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. |