Initial implementation of WebInspector for WebKit2 GTK port.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2011 16:32:49 +0000 (16:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2011 16:32:49 +0000 (16:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68235

Patch by Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> on 2011-09-29
Reviewed by Martin Robinson.

* MiniBrowser/gtk/BrowserWindow.c:
(browserWindowConstructed): Set the developer extra flags to true to enable inspect element.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96334 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/MiniBrowser/gtk/BrowserWindow.c

index f894029..749ade5 100644 (file)
@@ -1,3 +1,13 @@
+2011-09-29  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
+
+        Initial implementation of WebInspector for WebKit2 GTK port.
+        https://bugs.webkit.org/show_bug.cgi?id=68235
+
+        Reviewed by Martin Robinson.
+
+        * MiniBrowser/gtk/BrowserWindow.c:
+        (browserWindowConstructed): Set the developer extra flags to true to enable inspect element.
+
 2011-09-29  Adam Barth  <abarth@webkit.org>
 
         Unbreak the "update expectatations" button by using the existing
index 991e445..79e8d20 100644 (file)
@@ -185,6 +185,10 @@ static void browserWindowConstructed(GObject* gObject)
     browserWindowLoaderClientInit(window);
     browserWindowUIClientInit(window);
     browserWindowPolicyClientInit(window);
+
+    WKPageGroupRef groupRef = WKPageGetPageGroup(WKViewGetPage(window->webView));
+    WKPreferencesRef preferencesRef = WKPageGroupGetPreferences(groupRef);
+    WKPreferencesSetDeveloperExtrasEnabled(preferencesRef, true);
 }
 
 static void browser_window_class_init(BrowserWindowClass* klass)