Function

Gtktest_text_get

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 GtkWidget
 

Valid widget pointer.

 The data is owned by the caller of the function.

Return value

Returns: 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 string is a NUL terminated UTF-8 string.