diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp')
-rw-r--r-- | WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp b/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp index faa3e28..908bffa 100644 --- a/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp +++ b/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp @@ -92,7 +92,10 @@ Page* InspectorClient::createPage() g_signal_connect(m_webView, "destroy", G_CALLBACK(notifyWebViewDestroyed), (gpointer)this); - webkit_web_view_open(m_webView, "file://"DATA_DIR"/webkit-1.0/webinspector/inspector.html"); + gchar* inspectorURI = g_filename_to_uri(DATA_DIR"/webkit-1.0/webinspector/inspector.html", NULL, NULL); + webkit_web_view_load_uri(m_webView, inspectorURI); + g_free(inspectorURI); + gtk_widget_show(GTK_WIDGET(m_webView)); return core(m_webView); @@ -100,8 +103,8 @@ Page* InspectorClient::createPage() String InspectorClient::localizedStringsURL() { - notImplemented(); - return String(); + // FIXME: support l10n of localizedStrings.js + return String::fromUTF8(g_filename_to_uri(DATA_DIR"/webkit-1.0/webinspector/localizedStrings.js", NULL, NULL)); } String InspectorClient::hiddenPanels() @@ -173,6 +176,12 @@ void InspectorClient::inspectedURLChanged(const String& newURL) webkit_web_inspector_set_inspected_uri(m_webInspector, newURL.utf8().data()); } +void InspectorClient::inspectorWindowObjectCleared() +{ + notImplemented(); +} + + void InspectorClient::populateSetting(const String& key, InspectorController::Setting& setting) { notImplemented(); |