@@ -402,9 +402,9 @@ class Pizarra : TopLevelWindow
402402 int ybaux = toolsel.getwidth();
403403 if (yboard < ybaux)
404404 yboard = ybaux;
405- var button = new TextButton(self, 4, ybutton, 0, 0,
406- "quit ", null);
407- ybaux = button .getwidth();
405+ var buttonclose = new TextButton(self, 4, ybutton, 0, 0,
406+ "close ", null);
407+ ybaux = buttonclose .getwidth();
408408 if (yboard < ybaux)
409409 yboard = ybaux;
410410 yboard += 4;
@@ -415,10 +415,10 @@ class Pizarra : TopLevelWindow
415415
416416 colorsel.MoveWindow((yboard - colorsel.getwidth()) / 2 , 2);
417417 toolsel.MoveWindow((yboard - toolsel.getwidth()) / 2 , ytoolset);
418- button .MoveWindow((yboard - button .getwidth()) / 2, ybutton);
418+ buttonclose .MoveWindow((yboard - buttonclose .getwidth()) / 2, ybutton);
419419
420- button .OnClick += evhandler(self, "onclickquit ");
421- button .Map();
420+ buttonclose .OnClick += evhandler(self, "onclickclose ");
421+ buttonclose .Map();
422422 }
423423 function onconfigure(event)
424424 {
@@ -435,12 +435,11 @@ class Pizarra : TopLevelWindow
435435 }
436436 function onclientmessage(event)
437437 {
438- say('Bye');
439- self.quit();
438+ self.close();
440439 }
441- function onclickquit (event)
440+ function onclickclose (event)
442441 {
443- self.quit ();
442+ self.close ();
444443 }
445444
446445 function newwindow()
@@ -451,7 +450,7 @@ class Pizarra : TopLevelWindow
451450 np.Map();
452451 } );
453452 }
454- function quit ()
453+ function close ()
455454 {
456455 self.controller.pushaction(method_fun(self, "Destroy"));
457456 }
@@ -503,7 +502,7 @@ class Board : ChildWindow
503502
504503 var menu = new Menu(self.display, self.display.CreateFont("courier-12"));
505504 menu.push("new window", method_fun(self.parent, "newwindow"));
506- menu.push("quit ", method_fun(self.parent, "quit "));
505+ menu.push("close ", method_fun(self.parent, "close "));
507506 self.menu = menu;
508507 }
509508
@@ -519,7 +518,7 @@ class Board : ChildWindow
519518 string key = display.KeysymToString(display.KeycodeToKeysym(code));
520519 switch (key) {
521520 case "Escape":
522- self.parent.quit ();
521+ self.parent.close ();
523522 break;
524523 case "l":
525524 self.mode =: HANDLINE;
0 commit comments