On Fri, 06 Sep 2019 00:12:48 GMT, Ron Tarrant wrote:

Thanks, but I don't know which function to use to set the association. When using addProviderForScreen(), the association isn't actually set by a function, it's simply implied

I was looking at it from the wrong angle. This works:

class CSSLabel : Label
{
	string cssPath = "./css/button_label.css";
	StyleContext styleContext;
	CssProvider provider;
	
	this(string textLabel, string cssName)
	{
		super(textLabel);
		
		// css stuff
		setName(cssName);
		provider = new CssProvider();
		provider.loadFromPath(cssPath);
		styleContext = getStyleContext();
		styleContext.addProvider(provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
		
	} // this()

I just wasn't going far enough. I'll come up with a more OOP-like version before I take this to the blog. Thanks, Mike.