Method

GtkButtonget_label

Declaration [src]

const gchar*
gtk_button_get_label (
  GtkButton* button
)

Description [src]

Fetches the text from the label of the button, as set by gtk_button_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_button_new() to use as a container.

Gets propertyGtk.Button:label

Return value

Type: const gchar*

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

The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.