This isn't necessarily very big, but it keeps the widget checks out of gtkatspicontext.c, and it is a nice pattern.