Gtk.Button.prototype.get_label
function get_label():String { // Gjs wrapper for gtk_button_get_label() }
Fetches the text from the label of the button, as set by Gtk.set_label. If the label text has not been set the return value will be null. This will be the case if you create an empty button with Gtk.new to use as a container.
- Returns
The text of the label widget. This string is owned by the widget and must not be modified or freed.