CSN 332 - 002 : Graphical User Interface Design

Programming Assignment 1 - Due Thursday, February 28

For this assignment, you may find it useful to access information from the GTK + Reference Manual. A link exists on the course home page.

Create a directory in GUI called quit. Your directory should contain, at a minimum, the makefile and C source file quit_button.c

Write a C program which displays a main window with a single button labeled "quit". When the quit button is clicked, a dialog box should appear which says, "Are you sure?" You may use either the question dialog or the ok_cancel dialog for this assignment. If the OK or yes button is clicked, the program should terminate properly, otherwise it should print the message "Decided not to quit..." Your program should also contain code to terminate properly if the X in the upper left corner of the application window is clicked.

Make sure that your directory on eckserver (~ yourname /GUI/quit) contains

makefile

quit_button.c