From dba45ac30e88913a5c3a08e6ff2af2f176ca1550 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 25 Apr 2021 08:28:05 +0900 Subject: [PATCH] Added support GTK GladeXML (fix indentation) --- lib/gtk.js | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/gtk.js b/lib/gtk.js index 698826e..d3ce170 100644 --- a/lib/gtk.js +++ b/lib/gtk.js @@ -167,8 +167,8 @@ var GTKExecCommand = function(command) { console.log(line); - GTKServer.StdIn.WriteLine(line); - return GTKServer.StdOut.ReadLine(); + GTKServer.StdIn.WriteLine(line); + return GTKServer.StdOut.ReadLine(); }; // GTKInit @@ -422,29 +422,29 @@ var GTKWait = function(callback) { // GladeXML var GladeXML = function() { - var xml; + var xml; - this.load = function(filename) { - xml = GTKExecCommand([ - "glade_xml_new", - filename, - "NULL", - "NULL" - ]); - }; + this.load = function(filename) { + xml = GTKExecCommand([ + "glade_xml_new", + filename, + "NULL", + "NULL" + ]); + }; - this.findWidget = function(widgetName) { - var widgetId = GTKExecCommand([ - "glade_xml_get_widget", - xml, - widgetName - ]); - var widget = new GTKWidget({ - widgetId: widgetId - }); - widget.create(); - return widget; - }; + this.findWidget = function(widgetName) { + var widgetId = GTKExecCommand([ + "glade_xml_get_widget", + xml, + widgetName + ]); + var widget = new GTKWidget({ + widgetId: widgetId + }); + widget.create(); + return widget; + }; }; exports.Widget = GTKWidget;