test_text_get

function test_text_get(widget:Gtk.Widget):String {
    // Gjs wrapper for gtk_test_text_get()
}

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

Since 2.14

widget

valid widget pointer.

Returns

new 0-terminated C string, needs to be released with GLib.free.