X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Fwebkit_inspector.js;h=82720c91df5b46308463828f650abd3fa71a1487;hb=6f6e6ab99d47d1211e8f308cc7f2e88efc06503f;hp=2557836c1ffdd3fd67fc707e4b0fd098a9a14c4d;hpb=b14f388a835f3ca26e3b548fc06dc4a627bac542;p=app.Builder.js diff --git a/tests/webkit_inspector.js b/tests/webkit_inspector.js index 2557836c1..82720c91d 100644 --- a/tests/webkit_inspector.js +++ b/tests/webkit_inspector.js @@ -38,25 +38,25 @@ v.add(s1); v.add(s2); w.add(v); - +// enable inspector.. +w1.get_settings().enable_developer_extras = true; // load google on show.. w1.signal.show.connect(function() { w1.load_uri("http://www.google.com"); - // enable the dev extras? - //w1.get_settings().enable_developer_extras = true; }); + // load the inspector when loading has finished! w1.signal.load_finished.connect(function(wv) { w1.get_inspector().show(); - return true; }); +// return the bottom window as the inspector.. w1.get_inspector().signal.inspect_web_view.connect(function() { return w2; }) - +// show and go.. w.show_all(); Gtk.main();