Gtk.WidgetPath.prototype.append_for_widget

function append_for_widget(widget:Gtk.Widget):Number {
    // Gjs wrapper for gtk_widget_path_append_for_widget()
}

Appends the data from widget to the widget hierarchy represented by path. This function is a shortcut for adding information from widget to the given path. This includes setting the name or adding the style classes from widget.

Since 3.2

widget

the widget to append to the widget path

Returns

the position where the data was inserted