Function
Gtktest_display_button_window
deprecated: 3.20 since: 2.14
Declaration [src]
GtkWidget*
gtk_test_display_button_window (
const gchar* window_title,
const gchar* dialog_text,
...
)
Description [src]
Create a window with window title window_title
, text contents dialog_text
,
and a number of buttons, according to the paired argument list given
as @… parameters.
Each button is created with a label
and a ::clicked signal handler that
incremrents the integer stored in nump
.
The window will be automatically shown with gtk_widget_show_now()
after
creation, so when this function returns it has already been mapped,
resized and positioned on screen.
The window will quit any running gtk_main()-loop when destroyed, and it
will automatically be destroyed upon test function teardown.
Available since: 2.14
Deprecated since: 3.20
This testing infrastructure is phased out in favor of reftests.
This function is not directly available to language bindings.
Parameters
window_title
-
Type:
const gchar*
Title of the window to be displayed.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. dialog_text
-
Type:
const gchar*
Text inside the window to be displayed.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. ...
-
Type:
NULL
terminated list of (const char label, int nump) pairs.
Return value
Type: GtkWidget
A widget pointer to the newly created GtkWindow.
The caller of the function takes ownership of the data, and is responsible for freeing it. |