projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/enum.vala
[app.Builder.js]
/
tests
/
webkit_inspector.js
diff --git
a/tests/webkit_inspector.js
b/tests/webkit_inspector.js
index
faed9db
..
82720c9
100644
(file)
--- a/
tests/webkit_inspector.js
+++ b/
tests/webkit_inspector.js
@@
-38,25
+38,25
@@
v.add(s1);
v.add(s2);
w.add(v);
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");
// 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();
// 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;
})
w1.get_inspector().signal.inspect_web_view.connect(function() {
return w2;
})
-
+// show and go..
w.show_all();
Gtk.main();
w.show_all();
Gtk.main();