Skip to content

Commit

Permalink
fix handler of quit button
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Dec 8, 2011
1 parent 237e728 commit 9279603
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/pizarra.winxed
Expand Up @@ -408,7 +408,7 @@ class Pizarra : TopLevelWindow
toolsel.MoveWindow((yboard - toolsel.getwidth()) / 2 , ytoolset);
button.MoveWindow((yboard - button.getwidth()) / 2, ybutton);

button.OnClick += evhandler(self, "quit");
button.OnClick += evhandler(self, "onclickquit");
button.Map();
}
function onConfigure(event)
Expand All @@ -429,6 +429,10 @@ class Pizarra : TopLevelWindow
say('Bye');
self.quit();
}
function onclickquit(event)
{
self.quit();
}

function newwindow()
{
Expand Down

0 comments on commit 9279603

Please sign in to comment.