Gtk.Widget.prototype.get_name

function get_name():String {
    // Gjs wrapper for gtk_widget_get_name()
}

Retrieves the name of a widget. See Gtk.set_name for the significance of widget names.

Returns

name of the widget. This string is owned by GTK+ and should not be modified or freed