Button.getLabel

Fetches the text from the label of the button.

If the label text has not been set with [method@Gtk.Button.set_label] the return value will be %NULL. This will be the case if you create an empty button with [ctor@Gtk.Button.new] to use as a container.

class Button
string
getLabel
()

Return Value

Type: string

The text of the label widget. This string is owned by the widget and must not be modified or freed.

Meta