openbsd-ports/devel/node-gir/patches/patch-examples_browser_js
2012-09-23 17:52:27 +00:00

20 lines
584 B
Plaintext

$OpenBSD: patch-examples_browser_js,v 1.1 2012/09/23 17:52:27 jasper Exp $
commit 9773c5fabace929817cb35933361a2993c94b4a9
Author: Jasper Lievisse Adriaanse <jasper@humppa.nl>
Date: Sun Sep 23 19:48:28 2012 +0200
Unbreak browser example.
--- examples/browser.js.orig Sun Sep 23 19:50:26 2012
+++ examples/browser.js Sun Sep 23 19:50:32 2012
@@ -1,5 +1,6 @@
-var gtk = require("./gtk")
- , WebKit = require("./webkit");
+var gir = require('../gir')
+ , gtk = module.exports = gir.load('Gtk', '3.0')
+ , WebKit = module.exports = gir.load('WebKit', '3.0');
gtk.init(0);