/ gwdialogbox.h / Functions / Description

Functions



gw_dialog_box_create

Creates a dialog window box.
GtkWidget * gw_dialog_box_create ( GtkWindow *window, gchar *title, gchar *text, GtkSignalFunc ok, GtkSignalFunc no, GtkSignalFunc cancel, gpointer data);
This function creates a dialog window box.

Parameters
window parent window (if is NULL, the dialog box is not modal
title the window box title
text the message which is displayed in the text area
ok the function which will be call when user validate the dialog box
no the function which will be call when user answer no to the dialog box
cancel the function which will be call when user cancel the dialog box
data user data (usefull for callback function)

Result: the dialog box window.
Returns NULL when an error occured..


gw_dialog_box_get_user_data

Gets previously stored user data.
gpointer gw_dialog_box_get_user_data ( GtkWindow *w);
This function gets previously stored user data.

Parameters
w dialog box window

Result: user data.


gw_dialog_box_get_parent_window

Gets the parent window.
GtkWindow * gw_dialog_box_get_parent_window ( GtkWindow *w);
This function gets the parent window of application.

Parameters
w dialog box window

Result: dialog box' parent window.