The absolute beginners guide - Part II - for gnu-smalltalk/gtk (window closing callbacks)

Tagged:  •    •    •    •    •    •  

Let's start with enhancing the small app from the last step.

The problem that we are facing right now is, if we close the app through the window-managers 'close' button, the application (or better the GTK-Main-Loop) is still running and to end it, we have to press Ctrl-D.

Because I start the script from the command-line, I also would like to see, if I close the app, that the command line will come up again.

The solution seems, to create a method, that would be called, if the user presses the close button. We have to clean up the window and to close the app.

The absolute beginners guide - Part I - for gnu-smalltalk/gtk (Toplevel window)

Tagged:  •    •    •    •    •  

Ok, here's my first blog-entry.

Because I wanted to start with gnu-smalltalk - and smalltalk at all - I was trying to find some information on how to start. The most tutorials in the web are based on VisualWorks and are not really helpful for me, trying to start with gnu-smalltalk. Hopefully, with the GTK-Launcher the thing will change, but you still have to know, how to handle the GTK-Stuff with gnu-smalltalk.

And that's what the beginning of my blog is about.

Syndicate content

User login