Title: [130386] trunk/Tools
- Revision
- 130386
- Author
- [email protected]
- Date
- 2012-10-04 05:24:02 -0700 (Thu, 04 Oct 2012)
Log Message
[GTK] Enable inspector by default in GtkLauncher/MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=98333
Patch by Adrian Perez de Castro <[email protected]> on 2012-10-04
Reviewed by Xan Lopez.
Both MiniBrowser and GtkLauncher are tools for testing, so in
the end every time we want to test the inspector we have to
manually enable enable the “developer extras” setting when using
them. It make sense to have this setting enabled by default.
* GtkLauncher/main.c:
(main):
* MiniBrowser/gtk/main.c:
(main):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (130385 => 130386)
--- trunk/Tools/ChangeLog 2012-10-04 12:23:38 UTC (rev 130385)
+++ trunk/Tools/ChangeLog 2012-10-04 12:24:02 UTC (rev 130386)
@@ -1,3 +1,20 @@
+2012-10-04 Adrian Perez de Castro <[email protected]>
+
+ [GTK] Enable inspector by default in GtkLauncher/MiniBrowser
+ https://bugs.webkit.org/show_bug.cgi?id=98333
+
+ Reviewed by Xan Lopez.
+
+ Both MiniBrowser and GtkLauncher are tools for testing, so in
+ the end every time we want to test the inspector we have to
+ manually enable enable the “developer extras” setting when using
+ them. It make sense to have this setting enabled by default.
+
+ * GtkLauncher/main.c:
+ (main):
+ * MiniBrowser/gtk/main.c:
+ (main):
+
2012-10-04 Harald Alvestrand <[email protected]>
Change RTCPeerConnection GetStats to use Date timestamp format
Modified: trunk/Tools/GtkLauncher/main.c (130385 => 130386)
--- trunk/Tools/GtkLauncher/main.c 2012-10-04 12:23:38 UTC (rev 130385)
+++ trunk/Tools/GtkLauncher/main.c 2012-10-04 12:24:02 UTC (rev 130386)
@@ -489,6 +489,7 @@
g_option_context_add_group(context, gtk_get_option_group(TRUE));
webkitSettings = webkit_web_settings_new();
+ g_object_set(webkitSettings, "enable-developer-extras", TRUE, NULL);
if (!addWebSettingsGroupToContext(context, webkitSettings)) {
g_object_unref(webkitSettings);
webkitSettings = 0;
Modified: trunk/Tools/MiniBrowser/gtk/main.c (130385 => 130386)
--- trunk/Tools/MiniBrowser/gtk/main.c 2012-10-04 12:23:38 UTC (rev 130385)
+++ trunk/Tools/MiniBrowser/gtk/main.c 2012-10-04 12:24:02 UTC (rev 130386)
@@ -207,6 +207,7 @@
g_option_context_add_group(context, gtk_get_option_group(TRUE));
WebKitSettings *webkitSettings = webkit_settings_new();
+ webkit_settings_set_enable_developer_extras(webkitSettings, TRUE);
if (!addSettingsGroupToContext(context, webkitSettings)) {
g_object_unref(webkitSettings);
webkitSettings = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes