# GCK - General UI functions - Dialog Window

`GckDialogWindow *gck_dialog_window_new(name, ok_cb, cancel_cb, help_cb)`

| Type | Variable | Description
Input: | `char` | `name` | Name of the dialog window. This will also be the title of the window.
| `GtkCallback` | `ok_cb` | Callback function to invoke when the dialog window "Ok" button is pressed.
| `GtkCallback` | `cancel_cb` | Callback function to invoke when the dialog window "Cancel" button is pressed.
| `GtkCallback` | `help_cb` | Callback function to invoke when the dialog window "Help" button is pressed.
Output: | `GckDialogWindow *` |  | A pointer to a initialized GckDialogWindow structure.
This function creates and initializes a GckDialogWindow structure. This involves creating a dialog window with a work- and actionarea. Three buttons are created in the actionarea; "Ok", "Cancel" and "Help". The workarea is left empty.

`void gck_application_window_destroy(dialog)`

| Type | Variable | Description
Input: | `GckDialogWindow *` | `dialog` | Pointer to the GckDialogWindow structure to be destroyed.
Output: | `void` |  | This function doesn't return any value.
Frees all memory associated with the GckDialogWindow structure and destroys the window. This function is typically called when the user has hit the "Ok" or "Cancel" button.

Last changed 16-Dec-1996 by Tom Bech (tomb@ii.uib.no)