C481 B581 Computer Graphics
Dana Vrajitoru
Lab 1
Due date: Wednesday, February 3.
Ex. 1 Download the following files:
Compile the programs with the command "make all". Run the following
executables:
- hello
- radio
- selcolor
- flash
- simple
Examine the code and try to locate the widgets composing each
application, the signals connected to them and the callback functions
where available.
Ex. 2 a. Change the label on the hello button and the printed
message by this application.
b. Add another option to the radio program and label the
options differently.
c. Change the text shown in the content of the simple
application. Add another button to the toolbar that prints out a
message.
Send me: (optional) a. 2 out of the 3 source files for
ex. 2, for 2 pts.
b. Answer the following questions (2 pts):
- Which event is generated by the action of clicking the "x" button
on the top left of the window? How did you find out?
- In the color selection dialog, which callback function is
associated with the event of clicking the "OK" button?
- Which of the programs you have seen is only using GTK?
- What is the meaning of the parameters of the function
gtk_box_pack_start? You can use any resource to answer the
question. How did you find out?