The button control should now appear within the window control, filling all available space.
Figure 17 - 10 shows how this should now look.
Figure 17-10
Finish by saving your work as test.glade in the working directory. Glade files are runtime resource
files, so you ??™ ll need to include them with your application when distributed. You ??™ ll get to actually
instantiate this design, next.
The Glade Class
The Glade class is your portal to interacting with a Glade file. The actual structure and functionality of
the Glade class is simple, yet it is extremely powerful as it leverages the Glade API within the GTK
framework.
To use the Glade class, you simply instantiate it, passing as a parameter the filename of the Glade file
you want to interact with:
var glade = new Glade(???test.glade???);
Once acquired, the Glade API performs the task of building the GUI for you. You are then able to pick
individual control references out of the Glade object for use as though you had instantiated them
yourself. This is done using the getObjHandler method of the Glade object:
var wnd = glade.
Pages:
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938