[gnode] test: Add a button



commit 508ee9d41f486a3dfa7771117a5626f53adfa974
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Nov 27 16:50:50 2015 -0800

    test: Add a button

 test.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/test.js b/test.js
index 3c6d75b..78a6e75 100644
--- a/test.js
+++ b/test.js
@@ -16,6 +16,8 @@ const Gtk = GNode.importNS("Gtk");
 Gtk.init(0, null);
 
 var w = new Gtk.Window();
+var b = new Gtk.Button({ label: "Hi!" });
+w.add(b);
 w.show_all();
 
 setTimeout(function() { console.log("AA"); }, 2000);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]