Function

Gtktest_create_simple_window

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

Return value

Returns: GtkWidget
 

A widget pointer to the newly created GtkWindow.

 The data is owned by the called function.