/ gwcapturebox.h / Functions / Description

Functions



gw_capture_box_create

Creates a capture window box.
GtkWidget * gw_capture_box_create ( GtkWindow *window, gchar *title, gchar *subject, gchar *text, GtkSignalFunc ok);
This function creates a capture window box. If the validate callback function is NULL, the window is destroyed when the user clicks validate the capture box.

Parameters
w the parent window
title the window box title
subject the text which is displayed in the capture box
text the answer which is displayed in the field text
ok the function which will be call when user validate the capture box

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


gw_capture_box_get_text

Gets the text field.
gchar * gw_capture_box_get_text ( GtkWindow *w);
This function gets the text field value. It's a new allocated string and must free with g_free().


Parameters
w the capture box window

Result: the filled text value of the capture box.
Returns NULL when an error occured.
.


gw_capture_box_get_main_window

Gets the parent window.
GtkWindow * gw_capture_box_get_main_window ( GtkWindow *w);
This function gets the parent window of the capture box.

Parameters
w the capture box window

Result: the parent window of the capture box.
Returns NULL when an error occured.
.


gw_capture_box_destroy

Notifies the callback event of destroy.
gint gw_capture_box_destroy ( GtkWindow *w, GtkWidget **self_window);
This function notifies the callback event of destroy.

Parameters
w the capture box window
seft_window pointer to the capture box window reference

Result: the parent window of the capture box.
Returns NULL when an error occured.
.