Function

Gtktest_display_button_window

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.

Parameters

window_title const gchar*
 

Title of the window to be displayed.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
dialog_text const gchar*
 

Text inside the window to be displayed.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
...
 

NULL terminated list of (const char label, int nump) pairs.

Return value

Returns: 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.