Gtk.ToolButton.prototype.set_label_widget

function set_label_widget(label_widget:Gtk.Widget):void {
    // Gjs wrapper for gtk_tool_button_set_label_widget()
}

Sets label_widget as the widget that will be used as the label for button. If label_widget is null the "label" property is used as label. If "label" is also null, the label in the stock item determined by the "stock_id" property is used as label. If "stock_id" is also null, button does not have a label.

Since 2.4

label_widget

the widget used as label, or null