Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: webkit/tools/test_shell/test_shell_main.cc

Issue 18575: Do no use custom gtkrc files in layout test mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698