| Index: webkit/tools/test_shell/gtk/test_shell.cc
|
| diff --git a/webkit/tools/test_shell/gtk/test_shell.cc b/webkit/tools/test_shell/gtk/test_shell.cc
|
| index 97dc66cc0fb8911755c25214305ced50ac2a500a..827622083708fa2388f1d59fd9b3d4b365e48715 100644
|
| --- a/webkit/tools/test_shell/gtk/test_shell.cc
|
| +++ b/webkit/tools/test_shell/gtk/test_shell.cc
|
| @@ -20,6 +20,9 @@ WebPreferences* TestShell::web_prefs_ = NULL;
|
| WindowList* TestShell::window_list_;
|
|
|
| TestShell::TestShell() {
|
| + // Uncomment this line to get a bunch of linker errors. This is what we need
|
| + // to fix.
|
| + m_webViewHost.reset(WebViewHost::Create(NULL, NULL, *TestShell::web_prefs_));
|
| }
|
|
|
| TestShell::~TestShell() {
|
| @@ -76,7 +79,17 @@ bool TestShell::Initialize(const std::wstring& startingURL) {
|
| -1 /* append */);
|
|
|
| gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 0);
|
| - m_webViewHost.reset(WebViewHost::Create(vbox, NULL, *TestShell::web_prefs_));
|
| +
|
| + // It's funny, ok?
|
| + std::wstring path;
|
| + PathService::Get(base::DIR_SOURCE_ROOT, &path);
|
| + file_util::AppendToPath(&path, L"webkit");
|
| + file_util::AppendToPath(&path, L"tools");
|
| + file_util::AppendToPath(&path, L"test_shell");
|
| + file_util::AppendToPath(&path, L"resources");
|
| + file_util::AppendToPath(&path, L"acid3.png");
|
| + GtkWidget* image = gtk_image_new_from_file(WideToUTF8(path).c_str());
|
| + gtk_box_pack_start(GTK_BOX(vbox), image, FALSE, FALSE, 0);
|
|
|
| gtk_container_add(GTK_CONTAINER(m_mainWnd), vbox);
|
| gtk_widget_show_all(m_mainWnd);
|
|
|