[Vala] How to set Webkit option from vala
- From: Estu Fardani <andro medh4 gmail com>
- To: vala-list gnome org
- Subject: [Vala] How to set Webkit option from vala
- Date: Fri, 10 Jan 2014 20:04:21 +0700
Hi, i'm beginner vala user.
this time i do something code to run webkit from vala.
there the problem the security restrictions on file://
how to set webkit so it can run with option --allow-file-access-from-files
from vala?
where to put this code.
this my sample code :
public Main ()
{
var test = new App();
load_uri ("file://" + Environment.get_current_dir() +
"/public/index.html");
window_object_cleared.connect ((frame, context) => {
test.setup_js_class ((JSCore.GlobalContext) context);
});
}
thank you.
- Estu Fardani -
+62 856 432 14898
Linux Blog: http://tuanpembual.wordpess.com<http://tuanpembual.wordpress.com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]