StyleContext.setPath

void setPath(gtk.widget_path.WidgetPath path)

Sets the #GtkWidgetPath used for style matching. As a consequence, the style will be regenerated to match the new given path.

If you are using a #GtkStyleContext returned from [gtk.widget.Widget.getStyleContext], you do not need to call this yourself.

Parameters

patha #GtkWidgetPath