webglade

JavaScript library to dynamically create XUL GUI from Glade XML files
git clone https://logand.com/git/webglade.git/
Log | Files | Refs | README | LICENSE

hw2.js (346B)


      1 function main() {
      2   loadXml
      3   ('hw2.glade',
      4    function (glade) {
      5      var widgets = parseGlade(glade);
      6      wbuild(document.documentElement, [ widgets['window1'] ]);
      7    });
      8 };
      9 
     10 WHANDLER['callback'] =
     11 function (e) {
     12   alert('Hello again - ' + e.target.id + ' was pressed.');
     13 };
     14 
     15 WHANDLER['delete_handler'] =
     16 function (hw2) {
     17   gtkMainQuit();
     18 };
     19