Function

Gtktest_text_get

deprecated: 3.20 since: 2.14

Declaration [src]

gchar*
gtk_test_text_get (
  GtkWidget* widget
)

Description [src]

Retrive the text string of widget if it is a GtkLabel, GtkEditable (entry and text widgets) or GtkTextView.

Available since: 2.14

Deprecated since: 3.20

This testing infrastructure is phased out in favor of reftests.

Parameters

widget

Type: GtkWidget

Valid widget pointer.

The data is owned by the caller of the function.

Return value

Type: gchar*

New 0-terminated C string, needs to be released with g_free().

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.