Update gtk.js

This commit is contained in:
Namhyeon Go 2020-10-26 21:04:53 +09:00
parent 9cd9bbc6b6
commit e2c927f9ad

View File

@ -23,7 +23,7 @@ var GTKWidget = function() {
// GTKCreateElement // GTKCreateElement
var GTKCreateWidget = function(widget) { var GTKCreateWidget = function(widget) {
var widgetID = "", commands = []; var widgetID, commands = [];
switch (widget.widgetType) { switch (widget.widgetType) {
case "Window": case "Window":
@ -72,6 +72,7 @@ var GTKCreateWidget = function(widget) {
"NULL", "NULL",
"NULL" "NULL"
]); ]);
break; break;
case "RadioBox": case "RadioBox":
@ -94,7 +95,7 @@ var GTKCreateWidget = function(widget) {
// get widgetID from first command // get widgetID from first command
widgetID = GTKExecCommand(commands.pop()); widgetID = GTKExecCommand(commands.pop());
// execute next command // execute next commands
while (commands.length > 0) { while (commands.length > 0) {
GTKExecCommand(commands.pop()); GTKExecCommand(commands.pop());
} }
@ -210,7 +211,6 @@ var Entry = function() {
]); ]);
}; };
this.setText = function(text) { this.setText = function(text) {
.
return GTKExecCommand([ return GTKExecCommand([
"gtk_entry_set_text", "gtk_entry_set_text",
this.widgetID, this.widgetID,