The absolute beginners guide - Part V - for gnu-smalltalk/gtk (toolbars)

Tagged:  •    •    •    •  

The thing I want to show today, is enhancing the little application with a toolbar, so let's dig into this...

(Most of the applications which have menus, also have a toolbar. And it is realy easy to set up.)

The nice thing, all toolbar entries should be connected to an existing callback-method in our application, which is reachable already by an menu-entry. A toolbar is only a shortcut to an entry in the menu. So, we only have to design the user-interface, no additional business-logic is needed.

The absolute beginners guide - Part IV - for gnu-smalltalk/gtk (standard dialogs)

Tagged:  •    •    •    •    •  


I took a look into the standard dialogs and the first I tried out was the AboutDialog. It's pretty easy to handle, all you have to do is to instantiate GTK.GtkAboutDialog and set several values for displaying, call run and destroy and that's all.

Let's enhance our about-method with an example:

The absolute beginners guide - Part III - for gnu-smalltalk/gtk (application menu creation)

Tagged:  •    •    •    •  

Today, I'll talk a little bit about menu-creation.

An application does normaly not exist with only one window. You normaly have something to configure your app, or open files etc. These things are triggered through a toolbar or an application-menu.


Tagged:  •    •  


I've added a two new tools in GtkLauncher :

 a sender and an implementor browsers

Gwenael Casaccio

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.

Syndicate content

User login