Gtk.Buildable.prototype.get_name

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

Gets the name of the buildable object.

Gtk.Builder sets the name based on the <link linkend="BUILDER-UI">GtkBuilder UI definition</link> used to construct the buildable.

Since 2.12

Returns

the name set with Gtk.set_name