Added support GTK GladeXML (fix indentation)

This commit is contained in:
Namhyeon Go 2021-04-25 08:28:05 +09:00
parent db28783338
commit dba45ac30e

View File

@ -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;