[gnode] test: Pop up a GtkWindow
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnode] test: Pop up a GtkWindow
- Date: Sat, 28 Nov 2015 05:53:03 +0000 (UTC)
commit 85d3243ac5e233b051d09401935698eb26f7ff7d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Nov 27 13:07:17 2015 -0800
test: Pop up a GtkWindow
lib/gnode.js | 2 +-
test.js | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/gnode.js b/lib/gnode.js
index 1999666..22f83a9 100644
--- a/lib/gnode.js
+++ b/lib/gnode.js
@@ -1,5 +1,5 @@
-const _gi = require('../build/Release/gi');
+const _gi = require('../build/Debug/gi');
exports.importNS = function(name, version) {
var ns = _gi.importNS(name, version);
diff --git a/test.js b/test.js
index 3608a07..67d00db 100644
--- a/test.js
+++ b/test.js
@@ -14,3 +14,7 @@ console.log(GLib.test_override());
const Gtk = GNode.importNS("Gtk");
Gtk.init(0, null);
+var w = new Gtk.Window();
+w.show_all();
+
+Gtk.main();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]