Function

Gtktest_create_simple_window

deprecated: 3.20 since: 2.14

Declaration [src]

GtkWidget*
gtk_test_create_simple_window (
  const gchar* window_title,
  const gchar* dialog_text
)

Description [src]

Create a simple window with window title window_title and text contents dialog_text. 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

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.

Return value

Type: GtkWidget

A widget pointer to the newly created GtkWindow.

The data is owned by the called function.