next up previous contents
Next: Implementation Up: A simple application Previous: A simple application   Contents


Glade

Figure 6 shows Glade and a project named example. The sample GUI has only one top-level window (named window1).

Figure 6: Designing the example by means of Glade for GTK2
Image example_glade

The Widget Tree Window shows the widgets hierarchy. There are essentially the three main components (one button and two labels), grouped inside a set of containers, which supplies alignments and resizing capabilities.

On the right side of Figure 6, the Properties Window shows that the widget named button1 has signal clicked associated with function on_button1_clicked. This means that the Controller will have to supply this function in order to handle the click event occurring in button1.



Roberto Cavada 2008-08-26